Browse Source
feat(WireGuard): return client data by createClient.
pull/216/head
Danil Shaymurzin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/lib/WireGuard.js
|
@ -261,6 +261,8 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; |
|
|
config.clients[clientId] = client; |
|
|
config.clients[clientId] = client; |
|
|
|
|
|
|
|
|
await this.saveConfig(); |
|
|
await this.saveConfig(); |
|
|
|
|
|
|
|
|
|
|
|
return client; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async deleteClient({ clientId }) { |
|
|
async deleteClient({ clientId }) { |
|
|