diff --git a/wireguard/assets/root/Makefile b/wireguard/assets/root/Makefile index 247f3aa..23268a9 100644 --- a/wireguard/assets/root/Makefile +++ b/wireguard/assets/root/Makefile @@ -44,7 +44,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) @ mkdir -p $(CLIENT_DIR) cat "$<" \ | sed \ - -e 's/\$${DNS}/$(patsubst /%,,$(DNS))/g' \ + -e 's/\$${DNS}/$(DNS)/g' \ -e 's/\$${ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${ALLOWED_IPS}/$(subst /,\/,$(ALLOWED_IPS))/g' \ diff --git a/wireguard/make.sh b/wireguard/make.sh index fee87ab..72e4183 100755 --- a/wireguard/make.sh +++ b/wireguard/make.sh @@ -85,7 +85,7 @@ echo "# Setup: wireguard default profile..." ENDPOINT_PORT=51820 \ ENDPOINT=${ENDPOINT} \ CLIENT_IP=10.42.0.1/32 \ - DNS=${NS_LAN_IP} \ + DNS=${NS_LAN_IP/\/*} \ ALLOWED_IPS=0.0.0.0/0 \ make default.client" @ lxc-attach $ID -- chmod 600 /etc/wireguard/wg0.conf