fix(ui): учитывать неизвестный статус устройств VPN
This commit is contained in:
1 parent
6f00596e33
commit
6ea3cdad0e
6 files changed
+56
-16
No files matched your search
@@ -15,6 +15,6 @@ export const vxlanResponseSchema = z.object({
|
||||
export const vxlanServersSchema = z.array(z.object({
|
||||
id: z.number().int().positive(), name: z.string(), host: z.string(), country: z.string(), enabled: z.boolean(),
|
||||
type: z.enum(["jump-host", "exit-node", "home-router"]).optional(), site: z.string().optional(),
|
||||
asn: z.string().optional(), status: z.enum(["online", "offline", "degraded"]).optional(),
|
||||
asn: z.string().optional(), status: z.enum(["online", "offline", "degraded"]).nullable().optional(),
|
||||
latency: z.number().finite().nullable().optional(),
|
||||
})).refine(rows => new Set(rows.map(row => row.id)).size === rows.length)
|
||||
Reference in new issue
Block a user