fix missing timeout value for nc cmnd (#3712)

Co-authored-by: Patrick Scheich <patrick.scheich@syscovery.de>
This commit is contained in:
PatrickScheich 2023-03-20 22:04:02 +01:00 committed by GitHub
parent 1f06f90b95
commit aa12a1be85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ if [ ${runOnline} -eq 1 ]; then
fi
if [ ${online} -eq 0 ]; then
# test with netcat to avoid firewall issues with ICMP packets
online=$(nc -v -z -w 8.8.8.8 53 &> /dev/null && echo "1" || echo "0")
online=$(nc -v -z -w 3 8.8.8.8 53 &> /dev/null && echo "1" || echo "0")
fi
if [ ${online} -eq 0 ]; then
# re-test with other server