fix group delay

This commit is contained in:
pompurin404 2024-09-27 20:25:46 +08:00
parent 807a789c83
commit 91395d4b31
No known key found for this signature in database

View File

@ -168,7 +168,7 @@ export const mihomoGroupDelay = async (group: string, url?: string): Promise<IMi
const { delayTestUrl, delayTestTimeout } = appConfig const { delayTestUrl, delayTestTimeout } = appConfig
return await mihomoHttp( return await mihomoHttp(
'GET', 'GET',
`/proxies/${encodeURIComponent(group)}/delay?url=${encodeURIComponent(url || delayTestUrl || 'https://www.gstatic.com/generate_204')}&timeout=${delayTestTimeout || 5000}` `/group/${encodeURIComponent(group)}/delay?url=${encodeURIComponent(url || delayTestUrl || 'https://www.gstatic.com/generate_204')}&timeout=${delayTestTimeout || 5000}`
) )
} }