From 658654aff912ba6fa8a0fadd94682a9529977e23 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Fri, 22 Oct 2021 12:52:51 +0300 Subject: [PATCH] Fix: WG_PORT doesn't apply to config --- 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 18d51c4e..529b0620 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -82,7 +82,7 @@ module.exports = class WireGuard { [Interface] PrivateKey = ${config.server.privateKey} Address = ${config.server.address}/24 -ListenPort = 51820`; +ListenPort = ${WG_PORT}`; for (const [clientId, client] of Object.entries(config.clients)) { if (!client.enabled) continue;