Browse Source

remove presharedkey

pull/2294/head
SachinAsus 2 years ago
parent
commit
5cbdf96458
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -233,7 +233,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
const privateKey = await Util.exec('wg genkey');
const publicKey = await Util.exec(`echo ${privateKey} | wg pubkey`);
const preSharedKey = await Util.exec('wg genpsk');
// const preSharedKey = await Util.exec('wg genpsk');
// Calculate next IP
let address;
@ -260,7 +260,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
address,
privateKey,
publicKey,
preSharedKey,
// preSharedKey,
createdAt: new Date(),
updatedAt: new Date(),

Loading…
Cancel
Save