mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
fix: ipv6 latency test (#854)
This commit is contained in:
parent
001f41baad
commit
d6ec561b81
@ -257,6 +257,7 @@ export const useProxies = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const proxyLatencyTest = async (proxyName: string, provider: string) => {
|
const proxyLatencyTest = async (proxyName: string, provider: string) => {
|
||||||
|
await proxyIPv6SupportTest(proxyName, provider)
|
||||||
setProxyLatencyTestingMap(proxyName, async () => {
|
setProxyLatencyTestingMap(proxyName, async () => {
|
||||||
const { delay } = await proxyLatencyTestAPI(
|
const { delay } = await proxyLatencyTestAPI(
|
||||||
proxyName,
|
proxyName,
|
||||||
@ -270,10 +271,10 @@ export const useProxies = () => {
|
|||||||
[proxyName]: delay,
|
[proxyName]: delay,
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
await proxyIPv6SupportTest(proxyName, provider)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const proxyGroupLatencyTest = async (proxyGroupName: string) => {
|
const proxyGroupLatencyTest = async (proxyGroupName: string) => {
|
||||||
|
await proxyGroupIPv6SupportTest(proxyGroupName)
|
||||||
setProxyGroupLatencyTestingMap(proxyGroupName, async () => {
|
setProxyGroupLatencyTestingMap(proxyGroupName, async () => {
|
||||||
const newLatencyMap = await proxyGroupLatencyTestAPI(
|
const newLatencyMap = await proxyGroupLatencyTestAPI(
|
||||||
proxyGroupName,
|
proxyGroupName,
|
||||||
@ -288,7 +289,6 @@ export const useProxies = () => {
|
|||||||
|
|
||||||
await fetchProxies()
|
await fetchProxies()
|
||||||
})
|
})
|
||||||
await proxyGroupIPv6SupportTest(proxyGroupName)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateProviderByProviderName = (providerName: string) =>
|
const updateProviderByProviderName = (providerName: string) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user