From 8f66d11e3f99e313f5faf49ab3be24d199d1992b Mon Sep 17 00:00:00 2001 From: Danil Shaymurzin Date: Sun, 6 Mar 2022 00:38:46 +0500 Subject: [PATCH] feat(WireGuard): return client data by createClient. --- src/lib/WireGuard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 032854f..ba2b683 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -261,6 +261,8 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; config.clients[clientId] = client; await this.saveConfig(); + + return client; } async deleteClient({ clientId }) {