Skip to content

Commit

Permalink
Fix onetimelink (wg-easy#1367)
Browse files Browse the repository at this point in the history
* Russian translation

* fix onetime link for android tv

---------

Co-authored-by: Vadim Babadzhanyan <[email protected]>
  • Loading branch information
AKEB and AKEB authored Sep 7, 2024
1 parent 067b7bc commit 33b4c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/WireGuard.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;

async eraseOneTimeLink({ clientId }) {
const client = await this.getClient({ clientId });
client.oneTimeLink = null;
client.oneTimeLinkExpiresAt = null;
// client.oneTimeLink = null;
client.oneTimeLinkExpiresAt = new Date(Date.now() + 10 * 1000);
client.updatedAt = new Date();
await this.saveConfig();
}
Expand Down

0 comments on commit 33b4c38

Please sign in to comment.