From 23cf4050b1089300ae3b1c3bceeaa323751ba45e Mon Sep 17 00:00:00 2001 From: mxmehl Date: Sat, 23 Jun 2018 23:44:04 +0200 Subject: [PATCH] try max. 2 times * 5 secs --- status-ip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/status-ip.sh b/status-ip.sh index bcb1a17..c62849d 100755 --- a/status-ip.sh +++ b/status-ip.sh @@ -3,7 +3,7 @@ CURDIR=$(dirname "$(readlink -f "$0")") source "$CURDIR"/shared-functions.so -IP=$(wget -T 5 -q -O - $IPSERV4) +IP=$(wget -T 5 -t 2 -q -O - $IPSERV4) EXIT="$?" if [ "$var_conn" == "on" ]; then @@ -27,7 +27,7 @@ if [ "$var_conn" == "on" ]; then # If request was successful, try IPv6 as well if [ "$EXIT" != "fail" ]; then - IP6=$(wget -T 5 -q -O - $IPSERV6) + IP6=$(wget -T 5 -t 2 -q -O - $IPSERV6) EXIT="$?" if ([ "$EXIT" == 4 ] || [ "$EXIT" == 6 ] || [ "$EXIT" == 28 ]); then TEXT="t/o"