fix(inbound): strip XHTTP client-only fields from xray config, keep for subscriptions (#5349)

Inbound XMUX and other client-side xHTTP knobs were written into
bin/config.json even though xray-core's server listener ignores them.
Strip them in GenXrayInboundConfig while leaving the DB row intact so
buildXhttpExtra still pushes defaults to clients via share links.
This commit is contained in:
nima1024m authored and GitHub committed 2026-06-15 16:35:43 +02:00 Unverified
1 parent ac8cb505d1
commit cdaf5f80db
3 files changed
+131 -2

No files matched your search

@@ -66,7 +66,7 @@ describe('normalizeXhttpForWire stream-one', () => {
expect(out).not.toHaveProperty('scMaxEachPostBytes');
});
it('keeps inbound xmux when enableXmux is on (for the share-link extra)', () => {
it('keeps inbound xmux when enableXmux is on (stored for subscription extra; stripped from xray config on Go side)', () => {
const out = normalizeXhttpForWire({
path: '/app',
mode: 'auto',