mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Standardize wg logging facility
This commit is contained in:
parent
34ae762e5a
commit
669efe4d8c
Binary file not shown.
@ -1104,11 +1104,11 @@ msgstr "Allowed IPs"
|
|||||||
msgid "Persistent keepalive"
|
msgid "Persistent keepalive"
|
||||||
msgstr "Persistent keepalive"
|
msgstr "Persistent keepalive"
|
||||||
|
|
||||||
msgid "Display WireGuard debug log"
|
msgid "Enable this option to display an updated <code>wg-quick</code> debug log."
|
||||||
msgstr "Display WireGuard debug log"
|
msgstr "Enable this option to display an updated <code>wg-quick</code> debug log."
|
||||||
|
|
||||||
msgid "Enable this option to display an updated WireGuard debug log."
|
msgid "WireGuard debug log updated"
|
||||||
msgstr "Enable this option to display an updated WireGuard debug log."
|
msgstr "WireGuard debug log updated"
|
||||||
|
|
||||||
msgid "Scan this QR code with your client to connect to this tunnel"
|
msgid "Scan this QR code with your client to connect to this tunnel"
|
||||||
msgstr "Scan this QR code with your client to connect to this tunnel"
|
msgstr "Scan this QR code with your client to connect to this tunnel"
|
||||||
|
@ -3,16 +3,16 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h4 class="mt-3"><?php echo _("Logging"); ?></h4>
|
<h4 class="mt-3"><?php echo _("Logging"); ?></h4>
|
||||||
<div class="custom-control custom-switch">
|
<p><?php echo _("Enable this option to display an updated <code>wg-quick</code> debug log.") ?></p>
|
||||||
<input class="custom-control-input" id="wgLogEnable" type="checkbox" name="wgLogEnable" value="1" <?php echo $optLogEnable ? ' checked="checked"' : "" ?> aria-describedby="wgLogEnable">
|
<div class="custom-control custom-switch">
|
||||||
<label class="custom-control-label" for="wgLogEnable"><?php echo _("Display WireGuard debug log") ?></label>
|
<input class="custom-control-input" id="wgLogEnable" type="checkbox" name="wgLogEnable" value="1" <?php echo $optLogEnable ? ' checked="checked"' : "" ?> aria-describedby="wgLogEnable">
|
||||||
</div>
|
<label class="custom-control-label" for="wgLogEnable"><?php echo _("Logfile output") ?></label>
|
||||||
<p><small><?php echo _("Enable this option to display an updated WireGuard debug log.") ?></small></p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
exec('sudo chmod o+r /tmp/wireguard.log');
|
exec('sudo chmod o+r /tmp/wireguard.log');
|
||||||
$log = file_get_contents('/tmp/wireguard.log');
|
$log = file_get_contents('/tmp/wireguard.log');
|
||||||
echo '<textarea class="logoutput my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
echo '<textarea class="logoutput my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
</div><!-- /.tab-pane | logging tab -->
|
</div><!-- /.tab-pane | logging tab -->
|
||||||
|
Loading…
Reference in New Issue
Block a user