mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-02 11:15:03 +03:00
852b53db79
- Loopback outbound: add sniffing support (xray-core #6320) - FinalMask fragment: support per-segment lengths/delays arrays with legacy length/delay migration (xray-core #6334) - Consolidate sniffing into a shared SniffingFields component and the canonical SniffingSchema across inbound, VLESS reverse, and loopback
23 lines
768 B
TypeScript
23 lines
768 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { PortSchema } from '@/schemas/primitives';
|
|
import { VmessSecuritySchema } from '@/schemas/protocols/shared/vmess';
|
|
|
|
export const VmessOutboundUserSchema = z.object({
|
|
id: z.uuid(),
|
|
security: VmessSecuritySchema.default('auto'),
|
|
});
|
|
export type VmessOutboundUser = z.infer<typeof VmessOutboundUserSchema>;
|
|
|
|
export const VmessOutboundServerSchema = z.object({
|
|
address: z.string().min(1),
|
|
port: PortSchema,
|
|
users: z.array(VmessOutboundUserSchema).min(1),
|
|
});
|
|
export type VmessOutboundServer = z.infer<typeof VmessOutboundServerSchema>;
|
|
|
|
export const VmessOutboundSettingsSchema = z.object({
|
|
vnext: z.array(VmessOutboundServerSchema).min(1),
|
|
});
|
|
export type VmessOutboundSettings = z.infer<typeof VmessOutboundSettingsSchema>;
|