[Update] Check internet connection via 1.1.1.1

master
andryyy 2019-01-29 00:06:19 +01:00
parent 2507a8fd31
commit aab692301e
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ for option in ${CONFIG_ARRAY[@]}; do
done done
echo -en "Checking internet connection... " echo -en "Checking internet connection... "
curl -o /dev/null google.com -sm3 curl -o /dev/null 1.1.1.1 -sm3
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo -e "\e[31mfailed\e[0m" echo -e "\e[31mfailed\e[0m"
exit 1 exit 1