Browse Source

fix onetime link for android tv

pull/1367/head
Vadim Babadzhanyan 2 years ago
parent
commit
f6408b8631
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -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();
}

Loading…
Cancel
Save