Browse Source

fixup: lint errors

pull/997/head
Philip H. 3 years ago
committed by Julien COSMAO
parent
commit
b417268d93
No known key found for this signature in database GPG Key ID: 69153421048939E2
  1. 4
      src/lib/WireGuard.js
  2. 2
      src/www/js/app.js

4
src/lib/WireGuard.js

@ -240,11 +240,11 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;
let address;
if (allowedIps) {
address = allowedIps
address = allowedIps;
} else {
// Calculate next IP
for (let i = 2; i < 255; i++) {
const client = Object.values(config.clients).find(client => {
const client = Object.values(config.clients).find((client) => {
return client.address.includes(WG_DEFAULT_ADDRESS.replace('x', i));
});

2
src/www/js/app.js

@ -273,7 +273,7 @@ new Vue({
if (!name) return;
this.api.createClient({ name, allowedIps })
.catch(err => alert(err.message || err.toString()))
.catch((err) => alert(err.message || err.toString()))
.finally(() => this.refresh().catch(console.error));
},
deleteClient(client) {

Loading…
Cancel
Save