diff --git a/hybrid/scripts/check-wg-connection.sh b/hybrid/scripts/check-wg-connection.sh index 32e7495..4b233b2 100755 --- a/hybrid/scripts/check-wg-connection.sh +++ b/hybrid/scripts/check-wg-connection.sh @@ -60,7 +60,7 @@ for f in /sys/class/net/swlab*; do IP=$(echo $AllowedIPs | cut -d'/' -f1) IP=$(nextip $IP) #echo $IP - if ping -q -w 1 -c 1 $IP > /dev/null; then + if ping -q -w 1 $IP > /dev/null; then setconfig=$(jq -c \ --arg key0 'ip' --arg ip "${AllowedIPs}" \ --arg key1 'publickey' --arg publickey $publickey \