mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Use simpler netcat command to check server reachability.
With the ``-z`` option, netcat just scans and doesn't need redirection tricks to terminate the connection.
This commit is contained in:
parent
e405d0e400
commit
8df1f58fc0
@ -6,7 +6,7 @@
|
|||||||
# You may drop this under ``/etc/cron.hourly``.
|
# You may drop this under ``/etc/cron.hourly``.
|
||||||
# Please make sure that your system can send emails.
|
# Please make sure that your system can send emails.
|
||||||
#
|
#
|
||||||
# Requirements: coreutils, torify, netcat, mail.
|
# Requirements: coreutils, tor, netcat, mail.
|
||||||
#
|
#
|
||||||
# Author: Ivan Vilata-i-Balaguer <ivan@selidor.net>
|
# Author: Ivan Vilata-i-Balaguer <ivan@selidor.net>
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ wgthuiqn3aoiovbm.onion:8000
|
|||||||
|
|
||||||
failing_seed_nodes=''
|
failing_seed_nodes=''
|
||||||
for sn in $SEED_NODES; do
|
for sn in $SEED_NODES; do
|
||||||
true | torify nc $(echo "$sn" | tr ':' ' ') > /dev/null 2>&1
|
torify nc -z $(echo "$sn" | tr ':' ' ') > /dev/null 2>&1
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
failing_seed_nodes="$failing_seed_nodes $sn"
|
failing_seed_nodes="$failing_seed_nodes $sn"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user