diff --git a/wireguard/assets/root/Makefile b/wireguard/assets/root/Makefile index 0e78674..6de2b82 100644 --- a/wireguard/assets/root/Makefile +++ b/wireguard/assets/root/Makefile @@ -58,7 +58,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${ENDPOINT}/$(ENDPOINT)/g' \ -e 's/\$${ENDPOINT_PORT}/$(ENDPOINT_PORT)/g' \ -e 's/\$${CLIENT_PUBLIC_KEY}/'$$(cat "$(CLIENT_DIR)/$*_id.pub" | sed -e 's/\//\\\//g')'/g' \ - -e 's/\$${SERVER_PUBLIC_KEY}/'$$(cat "$(SERVER_PUBLIC_KEY)" | sed -e 's/\//\\\//')g'/g' \ + -e 's/\$${SERVER_PUBLIC_KEY}/'$$(cat "$(SERVER_PUBLIC_KEY)" | sed -e 's/\//\\\//g')'/g' \ >> "$(SERVER_CONF)" diff --git a/wireguard/assets/root/templates/client.conf b/wireguard/assets/root/templates/client.conf index 77b6d15..391b3ac 100644 --- a/wireguard/assets/root/templates/client.conf +++ b/wireguard/assets/root/templates/client.conf @@ -1,6 +1,6 @@ [Interface] PrivateKey = ${CLIENT_PRIVATE_KEY} -Address = ${CLIENT_IP}/32 +Address = ${CLIENT_IP} DNS = ${DNS} [Peer] diff --git a/wireguard/assets/root/templates/wg0-client.tpl b/wireguard/assets/root/templates/wg0-client.tpl index 27a360a..78695d8 100644 --- a/wireguard/assets/root/templates/wg0-client.tpl +++ b/wireguard/assets/root/templates/wg0-client.tpl @@ -1,6 +1,6 @@ [Peer] PublicKey = ${CLIENT_PUBLIC_KEY} -AllowedIPs = ${CLIENT_IP}/32 +AllowedIPs = ${CLIENT_IP} Endpoint = ${ENDPOINT}:${ENDPOINT_PORT}