修复 Google 连接检测

This commit is contained in:
Hyy2001X 2021-06-23 22:55:10 +08:00
parent ef5f31d942
commit 206cb3a8e0
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ PREPARE_UPGRADES() {
} }
[[ ${Test_Mode} == 1 ]] && Downloader="wget --no-check-certificate --timeout 5" [[ ${Test_Mode} == 1 ]] && Downloader="wget --no-check-certificate --timeout 5"
TIME g "执行: ${Proxy_Echo}${MSG}${TAIL_MSG}${MSG_2}" TIME g "执行: ${Proxy_Echo}${MSG}${TAIL_MSG}${MSG_2}"
if [[ $(CHECK_PKG curl) == true && ${Proxy_Mode} == 0 ]];then if [[ $(CHECK_PKG curl) == true && ! ${Proxy_Mode} == 1 ]];then
Google_Check=$(curl -I -s --connect-timeout 3 google.com -w %{http_code} | tail -n1) Google_Check=$(curl -I -s --connect-timeout 3 google.com -w %{http_code} | tail -n1)
[[ ! ${Google_Check} == 301 ]] && { [[ ! ${Google_Check} == 301 ]] && {
TIME r "Google 连接失败,尝试使用 [FastGit] 镜像加速!" TIME r "Google 连接失败,尝试使用 [FastGit] 镜像加速!"