fix: ipv6 latency test (#854)

This commit is contained in:
YetAnotherZephyruso 2024-07-24 11:51:14 +08:00 committed by GitHub
parent 001f41baad
commit d6ec561b81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,6 +257,7 @@ export const useProxies = () => {
}
const proxyLatencyTest = async (proxyName: string, provider: string) => {
await proxyIPv6SupportTest(proxyName, provider)
setProxyLatencyTestingMap(proxyName, async () => {
const { delay } = await proxyLatencyTestAPI(
proxyName,
@ -270,10 +271,10 @@ export const useProxies = () => {
[proxyName]: delay,
}))
})
await proxyIPv6SupportTest(proxyName, provider)
}
const proxyGroupLatencyTest = async (proxyGroupName: string) => {
await proxyGroupIPv6SupportTest(proxyGroupName)
setProxyGroupLatencyTestingMap(proxyGroupName, async () => {
const newLatencyMap = await proxyGroupLatencyTestAPI(
proxyGroupName,
@ -288,7 +289,6 @@ export const useProxies = () => {
await fetchProxies()
})
await proxyGroupIPv6SupportTest(proxyGroupName)
}
const updateProviderByProviderName = (providerName: string) =>