From 5cbdf964586c8dc675018a1c342e0dc3d1c5d366 Mon Sep 17 00:00:00 2001 From: SachinAsus Date: Sat, 18 May 2024 20:15:23 +0530 Subject: [PATCH] remove presharedkey --- src/lib/WireGuard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 139a64d7..a7eec384 100644 --- a/src/lib/WireGuard.js +++ b/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(),