try max. 2 times * 5 secs
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user