mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-08 12:36:50 +03:00
feat: set clash delay timeout to 5s
This commit is contained in:
@@ -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<IBaseApiResponse<void>> {
|
||||
return createBaseApiRequest<void>(() =>
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user