mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-23 09:25:35 +08:00
feat: make persisted for ipv6 result (#983)
This commit is contained in:
parent
6bd2029a5c
commit
2078051d7c
@ -1,3 +1,4 @@
|
|||||||
|
import { makePersisted } from '@solid-primitives/storage'
|
||||||
import { proxyGroupLatencyTestAPI, proxyLatencyTestAPI } from '~/apis'
|
import { proxyGroupLatencyTestAPI, proxyLatencyTestAPI } from '~/apis'
|
||||||
import {
|
import {
|
||||||
latencyQualityMap,
|
latencyQualityMap,
|
||||||
@ -5,9 +6,13 @@ import {
|
|||||||
urlForIPv6SupportTest,
|
urlForIPv6SupportTest,
|
||||||
} from './config'
|
} from './config'
|
||||||
|
|
||||||
export const [proxyIPv6SupportMap, setProxyIPv6SupportMap] = createSignal<
|
export const [proxyIPv6SupportMap, setProxyIPv6SupportMap] = makePersisted(
|
||||||
Record<string, boolean>
|
createSignal<Record<string, boolean>>({}),
|
||||||
>({})
|
{
|
||||||
|
name: 'proxyIPv6SupportMap',
|
||||||
|
storage: localStorage,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
export const proxyIPv6SupportTest = async (
|
export const proxyIPv6SupportTest = async (
|
||||||
proxyName: string,
|
proxyName: string,
|
||||||
|
Loading…
Reference in New Issue
Block a user