diff --git a/src/www/js/api.js b/src/www/js/api.js
index 3231b3d8..17d0fa7e 100644
--- a/src/www/js/api.js
+++ b/src/www/js/api.js
@@ -58,6 +58,13 @@ class API {
});
}
+ async areClientsHardened() {
+ return this.call({
+ method: 'get',
+ path: '/wireguard/hardened',
+ });
+ }
+
async getDns() {
return this.call({
method: 'get',
diff --git a/src/www/js/app.js b/src/www/js/app.js
index 48343861..b7133f26 100644
--- a/src/www/js/app.js
+++ b/src/www/js/app.js
@@ -38,19 +38,21 @@ new Vue({
clientsPersist: {},
clientDelete: null,
clientCreate: null,
+ clientQRShow: null,
+ clientConfigDownload: null,
clientCreateName: '',
clientCreateAllowedIPs: '',
clientCreateAllowedIPsDefault: '0.0.0.0/0, ::0/0',
clientCreateAllowedIPsExclude: (
- "::/0, 1.0.0.0/8, 2.0.0.0/8, 3.0.0.0/8, "
- + "4.0.0.0/6, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, "
- + "16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, "
- + "160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, "
- + "172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, "
- + "176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, "
- + "192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, "
- + "192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, "
- + "200.0.0.0/5, 208.0.0.0/4"
+ '::/0, 1.0.0.0/8, 2.0.0.0/8, 3.0.0.0/8, '
+ + '4.0.0.0/6, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, '
+ + '16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, '
+ + '160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, '
+ + '172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, '
+ + '176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, '
+ + '192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, '
+ + '192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, '
+ + '200.0.0.0/5, 208.0.0.0/4'
),
clientEditName: null,
clientEditNameId: null,
@@ -223,8 +225,11 @@ new Vue({
alert(err.message || err.toString());
});
},
+ areClientsHardened() {
+ return this.api.areClientsHardened();
+ },
getDns() {
- return this.api.getDns()
+ return this.api.getDns();
},
createClient() {
const name = this.clientCreateName;