From 1a3d8b4f3bff649f6eab6e83092c5025f709f997 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 30 Dec 2025 00:18:04 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E5=9B=BD=E5=86=85=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20daocloud=20=E5=8A=A0=E9=80=9F=E4=B8=8B=E8=BD=BD=20win7=20?= =?UTF-8?q?=E7=9A=84=20frpc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get-frpc-url.sh | 3 ++- reinstall.bat | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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)