From 63faf4c507a0238daef95230fda1246978785d28 Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:24:42 +0100 Subject: [PATCH] fixup: WireGuard.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 6c7f0d59..5f742574 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -204,7 +204,7 @@ ${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : '' return `[Interface] PrivateKey = ${client.privateKey} -Address = ${client.address}/${config.server.cidrBlock} +Address = ${client.address}/${client.cidrBlock} ${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}\n` : ''}\ ${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\