From 7df047a75d069154442ffc1cad7653fed67c6581 Mon Sep 17 00:00:00 2001 From: Gabriel Fiori Date: Mon, 2 Jan 2023 22:14:50 -0300 Subject: [PATCH] feat: change dns to be server wide instead of client only --- 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 7886ac91..b4b84732 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -95,6 +95,7 @@ module.exports = class WireGuard { [Interface] PrivateKey = ${config.server.privateKey} Address = ${config.server.address}/24 +DNS = ${WG_DEFAULT_DNS} ListenPort = 51820 PreUp = ${WG_PRE_UP} PostUp = ${WG_POST_UP} @@ -200,7 +201,6 @@ AllowedIPs = ${client.address}/32`; [Interface] PrivateKey = ${client.privateKey} Address = ${client.address}/24 -${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''} ${WG_MTU ? `MTU = ${WG_MTU}` : ''} [Peer]