I believe this is much better than copy & paste.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
WARNING: untranslated string: smb daemon = SMB Daemon
WARNING: untranslated string: subscription code = Subscription code
WARNING: untranslated string: user management = User Management
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: website = Website
WARNING: untranslated string: wednesday = Wednesday
WARNING: untranslated string: weeks = Weeks
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: total = Total
WARNING: untranslated string: transport mode does not support vti = VTI is not support in transport mode
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: timeformat = %Y-%m-%d at %H:%M:%S %Z
WARNING: untranslated string: total = Total
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: vulnerability = Vulnerability
WARNING: untranslated string: vulnerable = Vulnerable
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: vulnerability = Vulnerability
WARNING: untranslated string: vulnerable = Vulnerable
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: vulnerability = Vulnerability
WARNING: untranslated string: vulnerable = Vulnerable
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: vulnerability = Vulnerability
WARNING: untranslated string: vulnerable = Vulnerable
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
WARNING: untranslated string: vulnerability = Vulnerability
WARNING: untranslated string: vulnerable = Vulnerable
WARNING: untranslated string: warning = Warning
-WARNING: untranslated string: wg client configuration file = WireGuard Client Configuration File
WARNING: untranslated string: wg client pool = Client Pool
WARNING: untranslated string: wg create peer = Create A New Peer
WARNING: untranslated string: wg dns = DNS
+WARNING: untranslated string: wg download configuration file = Download the configuration file
WARNING: untranslated string: wg edit peer = Edit Peer
WARNING: untranslated string: wg host to net client settings = Host-To-Net Client Settings
WARNING: untranslated string: wg invalid client dns = Invalid client DNS address
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
< wg client pool
< wg create peer
< wg dns
+< wg download configuration file
< wg edit peer
< wg host to net client settings
< wg invalid client dns
# Encode the image as bas64
$qrcode = &MIME::Base64::encode_base64($qrcode);
+ # Encode the configuration as Base64
+ $config = &MIME::Base64::encode_base64($config);
+
# Open a new box
&Header::openbox('100%', '', "$Lang::tr{'wg peer configuration'}: $peer{'NAME'}");
<p>
$Lang::tr{'wg scan the qr code'}
</p>
- </div>
-
- <h6>$Lang::tr{'wg client configuration file'}</h6>
- <code><pre>$config</textarea></code>
+ <p>
+ <a href="data:text/plain;base64,${config}" download="$peer{'NAME'}.conf">
+ $Lang::tr{'wg download configuration file'}
+ </a>
+ </p>
+ </div>
END
&Header::closebox();
'wg client pool' => 'Client Pool',
'wg create peer' => 'Create A New Peer',
'wg dns' => 'DNS',
+'wg download configuration file' => 'Download the configuration file',
'wg edit peer' => 'Edit Peer',
'wg host to net client settings' => 'Host-To-Net Client Settings',
'wg invalid client dns' => 'Invalid client DNS address',