diff --git a/wireguard/assets/root/Makefile b/wireguard/assets/root/Makefile index 88a60ea..247f3aa 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}/$(subst /*,,$(DNS))/g' \ + -e 's/\$${DNS}/$(patsubst /%,,$(DNS))/g' \ -e 's/\$${ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${ALLOWED_IPS}/$(subst /,\/,$(ALLOWED_IPS))/g' \