From 2198fafc66c7f7fe63dcd82c0196821def06d081 Mon Sep 17 00:00:00 2001 From: joshuakraitberg Date: Sun, 31 Oct 2021 22:30:25 -0400 Subject: [PATCH] Fixed log revert --- src/lib/WireGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index a0c2b217..935f7553 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -252,7 +252,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`; const config = await this.getConfig(); const privateKey = await Util.exec('wg genkey'); - const publicKey = await Util.exec(`echo ${privateKey} | wg pubkey`); + const publicKey = await Util.exec(`echo ${privateKey} | wg pubkey`, privateKey); const preSharedKey = await Util.exec('wg genpsk'); // Calculate next IP