Browse Source

alpine admin

master
zeus 4 years ago
parent
commit
183cc57549
  1. 2
      hybrid/scripts/check-wg-connection.sh

2
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 \

Loading…
Cancel
Save