mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-18 08:20:11 +00:00
修复 Google 连接检测
This commit is contained in:
@@ -400,7 +400,7 @@ PREPARE_UPGRADES() {
|
||||
}
|
||||
[[ ${Test_Mode} == 1 ]] && Downloader="wget --no-check-certificate --timeout 5"
|
||||
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} == 301 ]] && {
|
||||
TIME r "Google 连接失败,尝试使用 [FastGit] 镜像加速!"
|
||||
|
||||
Reference in New Issue
Block a user