From c8c00254701f79ca4e3deb97e366451c9d700f70 Mon Sep 17 00:00:00 2001 From: divocat Date: Tue, 7 Oct 2025 00:52:53 +0300 Subject: [PATCH] feat: set clash delay timeout to 5s --- fe-app-podkop/src/clash/methods/triggerLatencyTest.ts | 2 +- .../htdocs/luci-static/resources/view/podkop/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fe-app-podkop/src/clash/methods/triggerLatencyTest.ts b/fe-app-podkop/src/clash/methods/triggerLatencyTest.ts index 94bf335..b7fffd9 100644 --- a/fe-app-podkop/src/clash/methods/triggerLatencyTest.ts +++ b/fe-app-podkop/src/clash/methods/triggerLatencyTest.ts @@ -4,7 +4,7 @@ import { getClashApiUrl } from '../../helpers'; export async function triggerLatencyGroupTest( tag: string, - timeout: number = 2000, + timeout: number = 5000, url: string = 'https://www.gstatic.com/generate_204', ): Promise> { return createBaseApiRequest(() => diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js index 502c013..bb8b1ad 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js @@ -866,7 +866,7 @@ async function triggerProxySelector(selector, outbound) { } // src/clash/methods/triggerLatencyTest.ts -async function triggerLatencyGroupTest(tag, timeout = 2e3, url = "https://www.gstatic.com/generate_204") { +async function triggerLatencyGroupTest(tag, timeout = 5e3, url = "https://www.gstatic.com/generate_204") { return createBaseApiRequest( () => fetch( `${getClashApiUrl()}/group/${tag}/delay?url=${encodeURIComponent(url)}&timeout=${timeout}`,