File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ get_frpc_url() {
6060 mirror=$(
6161 # nju 没有 win7 用的旧版
6262 # github 不支持 ipv6
63+ # daocloud 加速不支持 ipv6
6364 # jsdelivr 不支持 github releases 文件
6465 if is_ipv6_only; then
6566 if is_need_old_version; then
@@ -71,7 +72,7 @@ get_frpc_url() {
7172 else
7273 if is_in_china; then
7374 if is_need_old_version; then
74- echo https://github.com/fatedier/frp/releases/download
75+ echo https://files.m.daocloud.io/ github.com/fatedier/frp/releases/download
7576 else
7677 echo https://mirrors.nju.edu.cn/github-release/fatedier/frp
7778 fi
Original file line number Diff line number Diff line change @@ -131,6 +131,13 @@ call :check_cygwin_installed || (
131131 set dir = /sourceware/cygwin
132132 )
133133
134+ rem daocloud 加速有 90 天缓存,且不支持 IPv6
135+ rem https://github.com/DaoCloud/public-binary-files-mirror
136+ rem 无法用查询字符串强制刷新缓存
137+ rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?a=1
138+ rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?b=2
139+ rem 也就无法用 https://www.cygwin.com/setup-x86_64.exe?xxx=20250101 强制每天刷新缓存
140+
134141 rem 下载 Cygwin
135142 if not exist setup-!CygwinArch! .exe (
136143 call :download http://www.cygwin.com/setup-!CygwinArch! .exe %~dp0 setup-!CygwinArch! .exe || goto :download_failed
@@ -195,7 +202,7 @@ rem bitsadmin /transfer "%~3" /priority foreground %~1 %~2
195202:download
196203rem certutil 会被 windows Defender 报毒
197204rem windows server 2019 要用第二条 certutil 命令
198- echo Download : %~1 %~2
205+ echo Downloading : %~1 %~2
199206del /q " %~2 " 2 > nul
200207if exist " %~2 " (echo Cannot delete %~2 & exit /b 1)
201208
You can’t perform that action at this time.
0 commit comments