diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 0f16b43a..d42edf5b 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -248,9 +248,9 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; } // Create Client - const clientId = uuid.v4(); + const id = uuid.v4(); const client = { - clientId, + id, name, address, privateKey, @@ -263,7 +263,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; enabled: true, }; - config.clients[clientId] = client; + config.clients[id] = client; await this.saveConfig();