mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-06 21:25:04 +03:00
feat(xray): keep the XHTTP server's h2Params
xray-core 26.10.31 (#7295) added xhttpSettings.h2Params, a Go net/http HTTP2Config the XHTTP server applies to its HTTP/2 listener. The inbound form parsed xhttpSettings through a Zod object that strips unknown keys, so a value set through the JSON editor vanished on the next save; it is now kept as an optional record. h2Params tunes the server only. Share links already carry an allowlist of XHTTP keys, but the JSON subscription copies the inbound's xhttpSettings minus a denylist, which now drops h2Params too.
This commit is contained in:
@@ -108,6 +108,8 @@ export const XHttpStreamSettingsSchema = z.preprocess(
|
||||
serverMaxHeaderBytes: z.number().int().min(0).default(0),
|
||||
uplinkHTTPMethod: z.string().default(''),
|
||||
headers: WsHeaderMapSchema.default({}),
|
||||
// Server-only Go net/http HTTP2Config (xray-core 26.10.31); never put into share links.
|
||||
h2Params: z.record(z.string(), z.unknown()).optional(),
|
||||
// Client-side fields stored on inbound for subscription propagation.
|
||||
// The server listener ignores them at runtime, but the panel embeds
|
||||
// them in share-link `extra` blobs so the same xhttp config can
|
||||
|
||||
Reference in New Issue
Block a user