mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Standardize wg logging facility
This commit is contained in:
parent
34ae762e5a
commit
669efe4d8c
3 changed files with 14 additions and 14 deletions
Binary file not shown.
|
@ -1104,11 +1104,11 @@ msgstr "Allowed IPs"
|
|||
msgid "Persistent keepalive"
|
||||
msgstr "Persistent keepalive"
|
||||
|
||||
msgid "Display WireGuard debug log"
|
||||
msgstr "Display WireGuard debug log"
|
||||
msgid "Enable this option to display an updated <code>wg-quick</code> 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."
|
||||
msgstr "Enable this option to display an updated WireGuard debug log."
|
||||
msgid "WireGuard debug log updated"
|
||||
msgstr "WireGuard debug log updated"
|
||||
|
||||
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"
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4 class="mt-3"><?php echo _("Logging"); ?></h4>
|
||||
<p><?php echo _("Enable this option to display an updated <code>wg-quick</code> debug log.") ?></p>
|
||||
<div class="custom-control custom-switch">
|
||||
<input class="custom-control-input" id="wgLogEnable" type="checkbox" name="wgLogEnable" value="1" <?php echo $optLogEnable ? ' checked="checked"' : "" ?> aria-describedby="wgLogEnable">
|
||||
<label class="custom-control-label" for="wgLogEnable"><?php echo _("Display WireGuard debug log") ?></label>
|
||||
<label class="custom-control-label" for="wgLogEnable"><?php echo _("Logfile output") ?></label>
|
||||
</div>
|
||||
<p><small><?php echo _("Enable this option to display an updated WireGuard debug log.") ?></small></p>
|
||||
<?php
|
||||
exec('sudo chmod o+r /tmp/wireguard.log');
|
||||
$log = file_get_contents('/tmp/wireguard.log');
|
||||
|
|
Loading…
Reference in a new issue