From d660b8aacc346b46ebfa8978c00112d15d3f16ad Mon Sep 17 00:00:00 2001 From: babadzhanov Date: Fri, 14 Jul 2023 09:15:30 +0300 Subject: [PATCH] added id client-add in response --- src/lib/WireGuard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();