From 4e48ee7964b0cb7e4a7e576d593784de86c279e8 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 27 Mar 2025 12:02:44 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=E7=BA=AF=20ipv6=20?= =?UTF-8?q?=E4=B8=8B=E6=97=A0=E6=B3=95=E6=A3=80=E6=B5=8B=E5=9C=B0=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.bat | 2 +- reinstall.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reinstall.bat b/reinstall.bat index af00357..f27c12c 100644 --- a/reinstall.bat +++ b/reinstall.bat @@ -37,7 +37,7 @@ if not exist %tmp% ( rem 检查是否国内 if not exist geoip ( rem www.cloudflare.com/dash.cloudflare.com 国内访问的是美国服务器,而且部分地区被墙 - call :download http://www.visa.cn/cdn-cgi/trace %~dp0geoip || goto :download_failed + call :download http://www.qualcomm.cn/cdn-cgi/trace %~dp0geoip || goto :download_failed ) findstr /c:"loc=CN" geoip >nul if not errorlevel 1 ( diff --git a/reinstall.sh b/reinstall.sh index 89fb4e5..5841e7a 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -149,13 +149,13 @@ is_in_china() { if [ -z "$_loc" ]; then # www.cloudflare.com/dash.cloudflare.com 国内访问的是美国服务器,而且部分地区被墙 - # 备用 www.bose.cn - # 备用 www.qualcomm.cn + # 没有ipv6 www.visa.cn + # 没有ipv6 www.bose.cn + # 没有ipv6 www.garmin.com.cn # 备用 www.prologis.cn - # 备用 www.garmin.com.cn # 备用 www.autodesk.com.cn # 备用 www.keysight.com.cn - if ! _loc=$(curl -L http://www.visa.cn/cdn-cgi/trace | grep '^loc=' | cut -d= -f2 | grep .); then + if ! _loc=$(curl -L http://www.qualcomm.cn/cdn-cgi/trace | grep '^loc=' | cut -d= -f2 | grep .); then error_and_exit "Can not get location." fi echo "Location: $_loc" >&2