From 61ac0642156ec661f84ec42135af1ddeceeb379c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 10 Jan 2024 07:06:58 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- wireguard/templates/root/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index 5fccdf3..c115917 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -49,13 +49,13 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${\ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${\ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${\ALLOWED_IPS}/$(subst /,\/,$(ALLOWED_IPS))/g' \ - -e 's/\$${\CLIENT_IP}/$(shell ./getFreeClientIP)\/$(shell echo $(CLIENT_IPS) | sed 's/.*\///')/g' \ + -e 's/\$${\CLIENT_IP}/$(shell ./getFreeClientIP)\/32/g' \ -e 's/\$${\CLIENT_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(CLIENT_DIR)/$*_id")'/g' \ -e 's/\$${\SERVER_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_PUBLIC_KEY)")'/g' \ > "$(CLIENT_DIR)/$*.conf" cat "$(SERVER_CLIENT_TPL)" \ | sed \ - -e 's/\$${\CLIENT_IP}/$(shell ./getFreeClientIP)\/$(shell echo $(CLIENT_IPS) | sed 's/.*\///')/g' \ + -e 's/\$${\CLIENT_IP}/$(shell ./getFreeClientIP)\/32/g' \ -e 's/\$${\ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${\ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${\CLIENT_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(CLIENT_DIR)/$*_id.pub")'/g' \