Skip to content

Commit

Permalink
fix: ipv6 latency test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Jul 24, 2024
1 parent 001f41b commit a2a7c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/signals/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -288,7 +289,6 @@ export const useProxies = () => {

await fetchProxies()
})
await proxyGroupIPv6SupportTest(proxyGroupName)
}

const updateProviderByProviderName = (providerName: string) =>
Expand Down

0 comments on commit a2a7c65

Please sign in to comment.