checker: parallelism doesn't work
This commit is contained in:
parent
23c286ea3e
commit
a9d84f8ee6
@ -13,8 +13,7 @@ CNT=$(curl -s https://adlin.nemunai.re/api/ips)
|
||||
echo "${CNT}" | jq -r '. | keys | .[]' - | while read sid
|
||||
do
|
||||
IP=$(echo "${CNT}" | jq -r '.["'$sid'"].wg' -)
|
||||
if [ -n "${IP}" ]
|
||||
then
|
||||
[ -n "${IP}" ] && (
|
||||
echo -ne "\n${sid}: "
|
||||
ping6 -q -c 1 -w 1 "${IP}1" > /dev/null && {
|
||||
echo -n "PONG "
|
||||
@ -57,10 +56,8 @@ EOF
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
fi &
|
||||
)
|
||||
done
|
||||
|
||||
sleep 42
|
||||
killall openssl
|
||||
|
||||
done
|
||||
|
Reference in New Issue
Block a user