mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-04 01:17:15 +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:
@@ -9,8 +9,6 @@ export const WireguardDomainStrategySchema = z.enum([
|
||||
]);
|
||||
export type WireguardDomainStrategy = z.infer<typeof WireguardDomainStrategySchema>;
|
||||
|
||||
// Outbound peer is the remote server we connect to: no privateKey, but an
|
||||
// `endpoint` (host:port) the inbound side does not need.
|
||||
export const WireguardOutboundPeerSchema = z.object({
|
||||
publicKey: z.string().min(1),
|
||||
preSharedKey: z.string().optional(),
|
||||
@@ -20,9 +18,6 @@ export const WireguardOutboundPeerSchema = z.object({
|
||||
});
|
||||
export type WireguardOutboundPeer = z.infer<typeof WireguardOutboundPeerSchema>;
|
||||
|
||||
// Wire format: address is a string[] (Xray expects an array even though the
|
||||
// panel UI stores it comma-joined); reserved is number[] (panel splits the
|
||||
// comma string and Number()-coerces each entry).
|
||||
export const WireguardOutboundSettingsSchema = z.object({
|
||||
mtu: z.number().int().min(1).optional(),
|
||||
secretKey: z.string().min(1),
|
||||
|
||||
Reference in New Issue
Block a user