Skip to content

Commit

Permalink
Merge pull request wg-easy#216 from murka/patch-1
Browse files Browse the repository at this point in the history
feat(WireGuard): return client data by createClient.
  • Loading branch information
Emile Nijssen authored Jun 12, 2022
2 parents 7a0f097 + 8f66d11 commit b72bcce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/WireGuard.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
config.clients[clientId] = client;

await this.saveConfig();

return client;
}

async deleteClient({ clientId }) {
Expand Down

0 comments on commit b72bcce

Please sign in to comment.