From 41630c27e84616535e3c4abb33478a1471f5820d Mon Sep 17 00:00:00 2001 From: tm-sanjay Date: Thu, 5 Jan 2023 23:39:40 +0530 Subject: [PATCH] removed preshared key --- src/lib/WireGuard.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 2b87dd85..0237f0ac 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -110,7 +110,6 @@ PostDown = ${WG_POST_DOWN} # Client: ${client.name} (${clientId}) [Peer] PublicKey = ${client.publicKey} -PresharedKey = ${client.preSharedKey} AllowedIPs = ${client.address}/32`; } @@ -205,7 +204,6 @@ ${WG_MTU ? `MTU = ${WG_MTU}` : ''} [Peer] PublicKey = ${config.server.publicKey} -PresharedKey = ${client.preSharedKey} AllowedIPs = ${WG_ALLOWED_IPS} PersistentKeepalive = ${WG_PERSISTENT_KEEPALIVE} Endpoint = ${WG_HOST}:${WG_PORT}`; @@ -228,7 +226,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; @@ -254,7 +252,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; address, privateKey, publicKey, - preSharedKey, + // preSharedKey, //unclear generation of preSharedKey createdAt: new Date(), updatedAt: new Date(),