diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 98a12d1af..96e882c5f 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -424,9 +424,7 @@ jobs: autobuild-x86-arm-windows_webview2: name: Autobuild x86 and ARM Windows with WebView2 - needs: check_commit - if: ${{ needs.check_commit.outputs.should_run == 'true' }} - # needs: update_tag + needs: update_tag strategy: fail-fast: false matrix: diff --git a/UPDATELOG.md b/UPDATELOG.md index 0af70e27e..9f3469290 100644 --- a/UPDATELOG.md +++ b/UPDATELOG.md @@ -88,7 +88,7 @@ - 配置文件缺失 secret 字段时自动填充默认值 set-your-secret - 优化异步处理,防止部分组件 UI 阻塞 - 关闭 DNS 启用 - - 延迟测试链接更换为 Https 协议 https://www.gstatic.com/generate_204 + - 延迟测试链接更换为 Https 协议 https://cp.cloudflare.com/generate_204 #### 🗑️ 移除内容 - 窗口状态管理器 diff --git a/src-tauri/src_crates/crate_mihomo_api/src/lib.rs b/src-tauri/src_crates/crate_mihomo_api/src/lib.rs index f4b8e8d8a..757796b1d 100644 --- a/src-tauri/src_crates/crate_mihomo_api/src/lib.rs +++ b/src-tauri/src_crates/crate_mihomo_api/src/lib.rs @@ -150,7 +150,7 @@ impl MihomoManager { test_url: Option, timeout: i32, ) -> Result { - let test_url = test_url.unwrap_or("https://www.gstatic.com/generate_204".to_string()); + let test_url = test_url.unwrap_or("https://cp.cloudflare.com/generate_204".to_string()); let url = format!( "{}/proxies/{}/delay?url={}&timeout={}", self.mihomo_server, name, test_url, timeout diff --git a/src/components/profile/groups-editor-viewer.tsx b/src/components/profile/groups-editor-viewer.tsx index 9f9136a4a..8ac348da5 100644 --- a/src/components/profile/groups-editor-viewer.tsx +++ b/src/components/profile/groups-editor-viewer.tsx @@ -454,7 +454,7 @@ export const GroupsEditorViewer = (props: Props) => { ((props, ref) => { spellCheck="false" sx={{ width: 250, marginLeft: "auto" }} value={values.defaultLatencyTest} - placeholder="https://www.gstatic.com/generate_204" + placeholder="https://cp.cloudflare.com/generate_204" onChange={(e) => setValues((v) => ({ ...v, defaultLatencyTest: e.target.value })) } diff --git a/src/services/api.ts b/src/services/api.ts index d49c6d35d..e1bdcea62 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -83,7 +83,7 @@ export const getProxyDelay = async ( ) => { const params = { timeout: timeout || 10000, - url: url || "https://www.gstatic.com/generate_204", + url: url || "https://cp.cloudflare.com/generate_204", }; const instance = await getAxios(); const result = await instance.get( @@ -274,7 +274,7 @@ export const getGroupProxyDelays = async ( ) => { const params = { timeout: timeout || 10000, - url: url || "https://www.gstatic.com/generate_204", + url: url || "https://cp.cloudflare.com/generate_204", }; console.log( diff --git a/src/services/cmds.ts b/src/services/cmds.ts index f6a17b440..c847c464c 100644 --- a/src/services/cmds.ts +++ b/src/services/cmds.ts @@ -183,7 +183,7 @@ export async function cmdGetProxyDelay( url?: string, ) { // 确保URL不为空 - const testUrl = url || "https://www.gstatic.com/generate_204"; + const testUrl = url || "https://cp.cloudflare.com/generate_204"; console.log( `[API] 调用延迟测试API,代理: ${name}, 超时: ${timeout}ms, URL: ${testUrl}`, ); diff --git a/src/services/delay.ts b/src/services/delay.ts index 99e784b6c..260083338 100644 --- a/src/services/delay.ts +++ b/src/services/delay.ts @@ -23,7 +23,7 @@ class DelayManager { `[DelayManager] 获取测试URL,组: ${group}, URL: ${url || "未设置"}`, ); // 如果未设置URL,返回默认URL - return url || "https://www.gstatic.com/generate_204"; + return url || "https://cp.cloudflare.com/generate_204"; } setListener(name: string, group: string, listener: (time: number) => void) {