core: 更改 cygwin 国外源

This commit is contained in:
bin456789 2023-11-16 21:44:09 +08:00
parent 2bfb97a117
commit f045ca3d41
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -24,10 +24,11 @@ if not exist %tmp% (
:: 检查是否国内
if not exist %tmp%\geoip (
call :download https://www.cloudflare.com/cdn-cgi/trace %tmp%\geoip
call :download http://www.cloudflare.com/cdn-cgi/trace %tmp%\geoip
)
findstr /c:"loc=CN" %tmp%\geoip >nul
if !errorlevel! == 0 (
:: mirrors.tuna.tsinghua.edu.cn 会强制跳转 https
set mirror=http://mirror.nju.edu.cn
echo !confhome! | findstr /c:"://raw.githubusercontent.com/" >nul
@ -35,7 +36,8 @@ if !errorlevel! == 0 (
set confhome=https://ghps.cc/!confhome!
)
) else (
set mirror=http://mirrors.kernel.org
:: mirrors.kernel.org 在荷兰太慢
set mirror=http://mirror.facebook.net
)