diff --git a/scripts/start.sh b/scripts/start.sh index cc8923b..e5082af 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -54,7 +54,7 @@ create_peer() { [Peer] # Client ${1} PublicKey = ${2} $(if [ ! -z "${3}}" ]; then echo "PresharedKey = ${3}"; fi) -AllowedIPs = ${SERVER_IP%.*}.${1}/32 +AllowedIPs = ${WG_NET_IP%.*}.${1}/32 EOF } @@ -65,7 +65,7 @@ create_config() { fi cat < ${DATA_DIR}/wg${WG_CONFIG_ID}/client/peer${1}.conf [Interface] -Address = ${SERVER_IP%.*}.${1}/32 +Address = ${WG_NET_IP%.*}.${1}/32 PrivateKey = ${1} [Peer]