mirror of
https://github.com/Febbweiss/rclone_script.git
synced 2026-03-05 06:35:39 +00:00
ping 8.8.8.8 instead of www.google.com (should be faster and more reliable)
This commit is contained in:
@@ -176,13 +176,13 @@ function getAvailableConnection ()
|
|||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ping -q -w 1 -c 1 "www.google.com" > /dev/null
|
ping -q -w 1 -c 1 "8.8.8.8" > /dev/null
|
||||||
if [[ $? -eq 0 ]]
|
if [[ $? -eq 0 ]]
|
||||||
then
|
then
|
||||||
log 2 "www.google.com PING successful"
|
log 2 "8.8.8.8 PING successful"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
log 2 "www.google.com could not be PINGed"
|
log 2 "8.8.8.8 could not be PINGed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user