fix(proxies): speedtest params error

This commit is contained in:
Zephyruso 2023-09-06 10:41:30 +08:00
parent 707e124e91
commit 5f0fb23f15

View File

@ -91,7 +91,10 @@ export const useProxies = () => {
const latencyTestByProxyGroupName = async (proxyGroupName: string) => { const latencyTestByProxyGroupName = async (proxyGroupName: string) => {
const data: Record<string, number> = await request const data: Record<string, number> = await request
.get(`group/${proxyGroupName}/delay`, { .get(`group/${proxyGroupName}/delay`, {
searchParams: { url: urlForLatencyTest() }, searchParams: {
url: urlForLatencyTest(),
timeout: 2000,
},
}) })
.json() .json()