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
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();

Loading…
Cancel
Save