diff --git a/get-frpc-url.sh b/get-frpc-url.sh index 33f736b..77dce3f 100644 --- a/get-frpc-url.sh +++ b/get-frpc-url.sh @@ -60,6 +60,7 @@ get_frpc_url() { mirror=$( # nju 没有 win7 用的旧版 # github 不支持 ipv6 + # daocloud 加速不支持 ipv6 # jsdelivr 不支持 github releases 文件 if is_ipv6_only; then if is_need_old_version; then @@ -71,7 +72,7 @@ get_frpc_url() { else if is_in_china; then if is_need_old_version; then - echo https://github.com/fatedier/frp/releases/download + echo https://files.m.daocloud.io/github.com/fatedier/frp/releases/download else echo https://mirrors.nju.edu.cn/github-release/fatedier/frp fi diff --git a/reinstall.bat b/reinstall.bat index 919b81e..aa69843 100644 --- a/reinstall.bat +++ b/reinstall.bat @@ -131,6 +131,13 @@ call :check_cygwin_installed || ( set dir=/sourceware/cygwin ) + rem daocloud 加速有 90 天缓存,且不支持 IPv6 + rem https://github.com/DaoCloud/public-binary-files-mirror + rem 无法用查询字符串强制刷新缓存 + rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?a=1 + rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?b=2 + rem 也就无法用 https://www.cygwin.com/setup-x86_64.exe?xxx=20250101 强制每天刷新缓存 + rem 下载 Cygwin if not exist setup-!CygwinArch!.exe ( call :download http://www.cygwin.com/setup-!CygwinArch!.exe %~dp0setup-!CygwinArch!.exe || goto :download_failed @@ -195,7 +202,7 @@ rem bitsadmin /transfer "%~3" /priority foreground %~1 %~2 :download rem certutil 会被 windows Defender 报毒 rem windows server 2019 要用第二条 certutil 命令 -echo Download: %~1 %~2 +echo Downloading: %~1 %~2 del /q "%~2" 2>nul if exist "%~2" (echo Cannot delete %~2 & exit /b 1)