From 4b2c3819ceb4e6600572b97326e667c6201dacd7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 10 Jan 2024 04:46:43 +0300 Subject: [PATCH] fix... Signed-off-by: Alex A. Naanou --- wireguard/make.sh | 4 ++++ wireguard/templates/root/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wireguard/make.sh b/wireguard/make.sh index 98bef73..eb37718 100755 --- a/wireguard/make.sh +++ b/wireguard/make.sh @@ -41,9 +41,13 @@ xread "Wireguard endpoint: " ENDPOINT DFL_ENDPOINT_PORT=${DFL_ENDPOINT_PORT:=51820} xread "Wireguard endpoint port: " ENDPOINT_PORT + readVars +DNS=${NS_LAN_IP/\/*} + + #---------------------------------------------------------------------- diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index df43376..7e43f00 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -12,10 +12,10 @@ CLIENT_TPL := templates/client.conf CLIENT_DIR := $(SERVER_DIR)/clients/ CLIENT_IPS ?= 10.42.0.0/16 -ENDPOINT_PORT ?= 51820 +ENDPOINT_PORT ?= ${ENDPOINT_PORT} ENDPOINT ?= ${ENDPOINT} -DNS ?= ${NS_LAN_IPn} +DNS ?= ${DNS} ALLOWED_IPS ?= 0.0.0.0/0 # XXX need to generate this... CLIENT_IP ?= 10.42.0.1/32