From 835cd859704da20153586d871d7f7810aa0eb8dc Mon Sep 17 00:00:00 2001 From: divocat Date: Mon, 27 Oct 2025 14:56:10 +0200 Subject: [PATCH] feat: increase timeouts for delays 2s->5s & 5s -> 10s --- fe-app-podkop/src/podkop/methods/shell/index.ts | 4 ++-- .../htdocs/luci-static/resources/view/podkop/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fe-app-podkop/src/podkop/methods/shell/index.ts b/fe-app-podkop/src/podkop/methods/shell/index.ts index e0d3475..e9c2940 100644 --- a/fe-app-podkop/src/podkop/methods/shell/index.ts +++ b/fe-app-podkop/src/podkop/methods/shell/index.ts @@ -31,12 +31,12 @@ export const PodkopShellMethods = { getClashApiProxyLatency: async (tag: string) => callBaseMethod( Podkop.AvailableMethods.CLASH_API, - [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag], + [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, '5000'], ), getClashApiGroupLatency: async (tag: string) => callBaseMethod( Podkop.AvailableMethods.CLASH_API, - [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag], + [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag, '10000'], ), setClashApiGroupProxy: async (group: string, proxy: string) => callBaseMethod(Podkop.AvailableMethods.CLASH_API, [ 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 21ec692..c4b7ee7 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 @@ -561,11 +561,11 @@ var PodkopShellMethods = { ]), getClashApiProxyLatency: async (tag) => callBaseMethod( Podkop.AvailableMethods.CLASH_API, - [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag] + [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, "5000"] ), getClashApiGroupLatency: async (tag) => callBaseMethod( Podkop.AvailableMethods.CLASH_API, - [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag] + [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag, "10000"] ), setClashApiGroupProxy: async (group, proxy) => callBaseMethod(Podkop.AvailableMethods.CLASH_API, [ Podkop.AvailableClashAPIMethods.SET_GROUP_PROXY,