+
+
+
+
+
+ {{client.address6}}
+
+
+ $refs['client-' + client.id + '-address6'][0].select(), 1);"
+ class="cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity">
+
+
+
+
diff --git a/src/www/js/api.js b/src/www/js/api.js
index 9006f5a..239d7e1 100644
--- a/src/www/js/api.js
+++ b/src/www/js/api.js
@@ -138,6 +138,14 @@ class API {
});
}
+ async updateClientAddress6({ clientId, address6 }) {
+ return this.call({
+ method: 'put',
+ path: `/wireguard/client/${clientId}/address6/`,
+ body: { address6 },
+ });
+ }
+
async restoreConfiguration(file) {
return this.call({
method: 'put',
diff --git a/src/www/js/app.js b/src/www/js/app.js
index 61bb7c0..fe3551c 100644
--- a/src/www/js/app.js
+++ b/src/www/js/app.js
@@ -63,6 +63,8 @@ new Vue({
clientEditNameId: null,
clientEditAddress: null,
clientEditAddressId: null,
+ clientEditAddress6: null,
+ clientEditAddress6Id: null,
qrcode: null,
currentRelease: null,
@@ -299,6 +301,11 @@ new Vue({
.catch((err) => alert(err.message || err.toString()))
.finally(() => this.refresh().catch(console.error));
},
+ updateClientAddress6(client, address6) {
+ this.api.updateClientAddress6({ clientId: client.id, address6 })
+ .catch((err) => alert(err.message || err.toString()))
+ .finally(() => this.refresh().catch(console.error));
+ },
restoreConfig(e) {
e.preventDefault();
const file = e.currentTarget.files.item(0);
diff --git a/wg-easy.service b/wg-easy.service
index bcdf72f..a9eedf9 100644
--- a/wg-easy.service
+++ b/wg-easy.service
@@ -6,7 +6,7 @@ After=network-online.target nss-lookup.target
Environment="WG_HOST=raspberrypi.local" # Change this to your host's public address or static public ip.
Environment="PASSWORD=REPLACEME" # When set, requires a password when logging in to the Web UI, to disable add a hashtag
#Environment="WG_DEFAULT_ADDRESS=10.0.8.x" #Clients IP address range.
-#Environment="WG_DEFAULT_DNS=10.0.8.1, 1.1.1.1" #DNS server clients will use. If set to blank value, clients will not use any DNS.
+#Environment="WG_DEFAULT_DNS=10.0.8.1, 84.200.69.80" #DNS server clients will use. If set to blank value, clients will not use any DNS.
#Environment="WG_ALLOWED_IPS=0.0.0.0/0,::/0" #Allowed IPs clients will use.
#Environment="WG_DEVICE=ens1" #Ethernet device the wireguard traffic should be forwarded through.
#Environment="PORT=80" #TCP port for Web UI. Default : 51821