mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-17 16:50:58 +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:
@@ -23,9 +23,6 @@ export const VlessClientSchema = z.object({
|
||||
subId: z.string().default(''),
|
||||
comment: z.string().default(''),
|
||||
reset: z.number().int().min(0).default(0),
|
||||
// VLESS simple reverse-proxy: which reverse tag this client routes to,
|
||||
// plus an optional sniffing override for that path. Distinct from the
|
||||
// inbound-level `fallbacks` feature.
|
||||
reverse: z
|
||||
.object({
|
||||
tag: z.string(),
|
||||
@@ -42,9 +39,6 @@ export const VlessInboundSettingsSchema = z.object({
|
||||
decryption: z.string().min(1).default('none'),
|
||||
encryption: z.string().min(1).default('none'),
|
||||
fallbacks: z.array(VlessFallbackSchema).default([]),
|
||||
// TODO: narrow to flow === 'xtls-rprx-vision' once a per-flow discriminator
|
||||
// exists. 4-positive-int padding seed for xtls-rprx-vision; backend uses
|
||||
// safe defaults when omitted.
|
||||
testseed: z.array(z.number().int().positive()).length(4).optional(),
|
||||
});
|
||||
export type VlessInboundSettings = z.infer<typeof VlessInboundSettingsSchema>;
|
||||
|
||||
Reference in New Issue
Block a user