fixed fix's fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-10 01:02:08 +03:00
parent d8af72fe8e
commit 46187995e5
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
@ mkdir -p $(CLIENT_DIR) @ mkdir -p $(CLIENT_DIR)
cat "$<" \ cat "$<" \
| sed \ | sed \
-e 's/\$${DNS}/$(patsubst /%,,$(DNS))/g' \ -e 's/\$${DNS}/$(DNS)/g' \
-e 's/\$${ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${ENDPOINT}/$(ENDPOINT)/g' \
-e 's/\$${ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \
-e 's/\$${ALLOWED_IPS}/$(subst /,\/,$(ALLOWED_IPS))/g' \ -e 's/\$${ALLOWED_IPS}/$(subst /,\/,$(ALLOWED_IPS))/g' \

View File

@ -85,7 +85,7 @@ echo "# Setup: wireguard default profile..."
ENDPOINT_PORT=51820 \ ENDPOINT_PORT=51820 \
ENDPOINT=${ENDPOINT} \ ENDPOINT=${ENDPOINT} \
CLIENT_IP=10.42.0.1/32 \ CLIENT_IP=10.42.0.1/32 \
DNS=${NS_LAN_IP} \ DNS=${NS_LAN_IP/\/*} \
ALLOWED_IPS=0.0.0.0/0 \ ALLOWED_IPS=0.0.0.0/0 \
make default.client" make default.client"
@ lxc-attach $ID -- chmod 600 /etc/wireguard/wg0.conf @ lxc-attach $ID -- chmod 600 /etc/wireguard/wg0.conf