forked from mirrors/amnezia-wg-easy
Support for sessionless HTTP API authentication
This commit is contained in:
parent
b56c49c99a
commit
bf956e3ae8
6 changed files with 387 additions and 29 deletions
|
@ -248,8 +248,9 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
|
|||
}
|
||||
|
||||
// Create Client
|
||||
const clientId = uuid.v4();
|
||||
const id = uuid.v4();
|
||||
const client = {
|
||||
id,
|
||||
name,
|
||||
address,
|
||||
privateKey,
|
||||
|
@ -262,7 +263,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
|
|||
enabled: true,
|
||||
};
|
||||
|
||||
config.clients[clientId] = client;
|
||||
config.clients[id] = client;
|
||||
|
||||
await this.saveConfig();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue