try max. 2 times * 5 secs

This commit is contained in:
2018-06-23 23:44:04 +02:00
parent 538fd345f9
commit 23cf4050b1

View File

@@ -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"