diff --git a/src/.eslintrc.json b/src/.eslintrc.json index 9fc48da5..613dd7d5 100644 --- a/src/.eslintrc.json +++ b/src/.eslintrc.json @@ -8,4 +8,4 @@ "no-shadow": "off", "max-len": "off" } -} \ No newline at end of file +} diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 7886ac91..f4c6b647 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -227,7 +227,9 @@ 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`, { + log: 'echo ***hidden*** | wg pubkey', + }); const preSharedKey = await Util.exec('wg genpsk'); // Calculate next IP