forked from mirrors/amnezia-wg-easy
Supports displaying short links, for easy downloading on TVs and Android TVs
This commit is contained in:
parent
2ea37dd7ba
commit
0a33b1f7df
8 changed files with 45 additions and 3 deletions
|
@ -5,6 +5,7 @@ const path = require('path');
|
|||
const debug = require('debug')('WireGuard');
|
||||
const crypto = require('node:crypto');
|
||||
const QRCode = require('qrcode');
|
||||
const CRC32 = require("crc-32");
|
||||
|
||||
const Util = require('./Util');
|
||||
const ServerError = require('./ServerError');
|
||||
|
@ -147,6 +148,7 @@ ${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
|
|||
createdAt: new Date(client.createdAt),
|
||||
updatedAt: new Date(client.updatedAt),
|
||||
allowedIPs: client.allowedIPs,
|
||||
hash: Math.abs(CRC32.str(clientId)).toString(16),
|
||||
downloadableConfig: 'privateKey' in client,
|
||||
persistentKeepalive: null,
|
||||
latestHandshakeAt: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue