mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 18:37:41 +01:00
fix missing timeout value for nc cmnd (#3712)
Co-authored-by: Patrick Scheich <patrick.scheich@syscovery.de>
This commit is contained in:
@@ -134,7 +134,7 @@ if [ ${runOnline} -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
if [ ${online} -eq 0 ]; then
|
if [ ${online} -eq 0 ]; then
|
||||||
# test with netcat to avoid firewall issues with ICMP packets
|
# 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
|
fi
|
||||||
if [ ${online} -eq 0 ]; then
|
if [ ${online} -eq 0 ]; then
|
||||||
# re-test with other server
|
# re-test with other server
|
||||||
|
|||||||
Reference in New Issue
Block a user