From c63889f32d0c6c12a58676815dbbe96ff629ea81 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 21 Feb 2025 00:30:36 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E6=9B=B4=E6=94=B9=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E7=BD=91=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #247 --- reinstall.bat | 4 ++-- reinstall.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reinstall.bat b/reinstall.bat index b1704b0..ae11a41 100644 --- a/reinstall.bat +++ b/reinstall.bat @@ -36,8 +36,8 @@ if not exist %tmp% ( rem 检查是否国内 if not exist geoip ( - rem 部分地区 www.cloudflare.com 被墙 - call :download http://dash.cloudflare.com/cdn-cgi/trace %~dp0geoip || goto :download_failed + rem www.cloudflare.com/dash.cloudflare.com 国内访问的是美国服务器,而且部分地区被墙 + call :download http://www.visa.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 fcdbe11..07eee6c 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -129,8 +129,8 @@ is_in_china() { [ "$force_cn" = 1 ] && return 0 if [ -z "$_loc" ]; then - # 部分地区 www.cloudflare.com 被墙 - _loc=$(curl -L http://dash.cloudflare.com/cdn-cgi/trace | grep '^loc=' | cut -d= -f2) + # www.cloudflare.com/dash.cloudflare.com 国内访问的是美国服务器,而且部分地区被墙 + _loc=$(curl -L http://www.visa.cn/cdn-cgi/trace | grep '^loc=' | cut -d= -f2) if [ -z "$_loc" ]; then error_and_exit "Can not get location." fi