From d6ec561b81f42d8bf76be62ebedc053c883067a3 Mon Sep 17 00:00:00 2001 From: YetAnotherZephyruso <176294927+YetAnotherZephyruso@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:51:14 +0800 Subject: [PATCH] fix: ipv6 latency test (#854) --- src/signals/proxies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signals/proxies.ts b/src/signals/proxies.ts index 1b6c22c..e62bf42 100644 --- a/src/signals/proxies.ts +++ b/src/signals/proxies.ts @@ -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) =>