Browse Source

added id client-add in response

pull/597/head
babadzhanov 3 years ago
parent
commit
d660b8aacc
  1. 6
      src/lib/WireGuard.js

6
src/lib/WireGuard.js

@ -248,9 +248,9 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
} }
// Create Client // Create Client
const clientId = uuid.v4(); const id = uuid.v4();
const client = { const client = {
clientId, id,
name, name,
address, address,
privateKey, privateKey,
@ -263,7 +263,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
enabled: true, enabled: true,
}; };
config.clients[clientId] = client; config.clients[id] = client;
await this.saveConfig(); await this.saveConfig();

Loading…
Cancel
Save