mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 15:47:14 +00:00
feat(xray): add loopback sniffing and per-segment fragment masks
- 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
This commit is contained in:
@@ -26,10 +26,6 @@ export * from './vless';
|
||||
export * from './vmess';
|
||||
export * from './wireguard';
|
||||
|
||||
// Outbound discriminated union spans 13 protocols (mixed/tunnel are
|
||||
// inbound-only; freedom/blackhole/dns/loopback are outbound-only). The wire
|
||||
// shape is `{ protocol, settings }` — same wrapper pattern as the inbound
|
||||
// union, even though some leaf schemas (freedom, blackhole) are sparse.
|
||||
export const OutboundSettingsSchema = z.discriminatedUnion('protocol', [
|
||||
z.object({ protocol: z.literal('vmess'), settings: VmessOutboundSettingsSchema }),
|
||||
z.object({ protocol: z.literal('vless'), settings: VlessOutboundSettingsSchema }),
|
||||
|
||||
Reference in New Issue
Block a user