Support for sessionless HTTP API authentication
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user