mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
feat: increase timeouts for delays 2s->5s & 5s -> 10s
This commit is contained in:
@@ -31,12 +31,12 @@ export const PodkopShellMethods = {
|
|||||||
getClashApiProxyLatency: async (tag: string) =>
|
getClashApiProxyLatency: async (tag: string) =>
|
||||||
callBaseMethod<Podkop.GetClashApiProxyLatency>(
|
callBaseMethod<Podkop.GetClashApiProxyLatency>(
|
||||||
Podkop.AvailableMethods.CLASH_API,
|
Podkop.AvailableMethods.CLASH_API,
|
||||||
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag],
|
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, '5000'],
|
||||||
),
|
),
|
||||||
getClashApiGroupLatency: async (tag: string) =>
|
getClashApiGroupLatency: async (tag: string) =>
|
||||||
callBaseMethod<Podkop.GetClashApiGroupLatency>(
|
callBaseMethod<Podkop.GetClashApiGroupLatency>(
|
||||||
Podkop.AvailableMethods.CLASH_API,
|
Podkop.AvailableMethods.CLASH_API,
|
||||||
[Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag],
|
[Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag, '10000'],
|
||||||
),
|
),
|
||||||
setClashApiGroupProxy: async (group: string, proxy: string) =>
|
setClashApiGroupProxy: async (group: string, proxy: string) =>
|
||||||
callBaseMethod<unknown>(Podkop.AvailableMethods.CLASH_API, [
|
callBaseMethod<unknown>(Podkop.AvailableMethods.CLASH_API, [
|
||||||
|
|||||||
@@ -561,11 +561,11 @@ var PodkopShellMethods = {
|
|||||||
]),
|
]),
|
||||||
getClashApiProxyLatency: async (tag) => callBaseMethod(
|
getClashApiProxyLatency: async (tag) => callBaseMethod(
|
||||||
Podkop.AvailableMethods.CLASH_API,
|
Podkop.AvailableMethods.CLASH_API,
|
||||||
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag]
|
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, "5000"]
|
||||||
),
|
),
|
||||||
getClashApiGroupLatency: async (tag) => callBaseMethod(
|
getClashApiGroupLatency: async (tag) => callBaseMethod(
|
||||||
Podkop.AvailableMethods.CLASH_API,
|
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, [
|
setClashApiGroupProxy: async (group, proxy) => callBaseMethod(Podkop.AvailableMethods.CLASH_API, [
|
||||||
Podkop.AvailableClashAPIMethods.SET_GROUP_PROXY,
|
Podkop.AvailableClashAPIMethods.SET_GROUP_PROXY,
|
||||||
|
|||||||
Reference in New Issue
Block a user