From aa12a1be854251a329cd95298297b9adcd7829a6 Mon Sep 17 00:00:00 2001 From: PatrickScheich <50054697+PatrickScheich@users.noreply.github.com> Date: Mon, 20 Mar 2023 22:04:02 +0100 Subject: [PATCH] fix missing timeout value for nc cmnd (#3712) Co-authored-by: Patrick Scheich --- home.admin/config.scripts/internet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/config.scripts/internet.sh b/home.admin/config.scripts/internet.sh index f70705412..fb0f3d9a8 100755 --- a/home.admin/config.scripts/internet.sh +++ b/home.admin/config.scripts/internet.sh @@ -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