From 5d72eef04ddf2c60df36471f6c6fe72249e59a05 Mon Sep 17 00:00:00 2001 From: Peter Lewis Date: Sun, 5 Nov 2023 11:30:13 +0000 Subject: [PATCH] Fix hardcoded WG_PORT in js Had already added `$WG_PORT` variable to readme, but negated to switch it to a variable within the .js --- 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 fd19458a..43208864 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -95,7 +95,7 @@ module.exports = class WireGuard { [Interface] PrivateKey = ${config.server.privateKey} Address = ${config.server.address}/24 -ListenPort = 51820 +ListenPort = ${WG_PORT} PreUp = ${WG_PRE_UP} PostUp = ${WG_POST_UP} PreDown = ${WG_PRE_DOWN}