Skip to content

Commit

Permalink
feat: make persisted for ipv6 result (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso authored Sep 8, 2024
1 parent 6bd2029 commit 2078051
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/signals/ipv6.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { makePersisted } from '@solid-primitives/storage'
import { proxyGroupLatencyTestAPI, proxyLatencyTestAPI } from '~/apis'
import {
latencyQualityMap,
latencyTestTimeoutDuration,
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,
Expand Down

0 comments on commit 2078051

Please sign in to comment.