mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-26 22:34:02 +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 {
|
||||
latencyQualityMap,
|
||||
@ -5,9 +6,13 @@ import {
|
||||
urlForIPv6SupportTest,
|
||||
} from './config'
|
||||
|
||||
export const [proxyIPv6SupportMap, setProxyIPv6SupportMap] = createSignal<
|
||||
Record<string, boolean>
|
||||
>({})
|
||||
export const [proxyIPv6SupportMap, setProxyIPv6SupportMap] = makePersisted(
|
||||
createSignal<Record<string, boolean>>({}),
|
||||
{
|
||||
name: 'proxyIPv6SupportMap',
|
||||
storage: localStorage,
|
||||
},
|
||||
)
|
||||
|
||||
export const proxyIPv6SupportTest = async (
|
||||
proxyName: string,
|
||||
|
Loading…
Reference in New Issue
Block a user