mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
fix missing timeout value for nc cmnd (#3712)
Co-authored-by: Patrick Scheich <patrick.scheich@syscovery.de>
This commit is contained in:
parent
1f06f90b95
commit
aa12a1be85
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue