mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5194] [Feature]: XHTTP: Add fields for configuring "xmux" for inbounds #3644
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3644
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Viktus on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5194
Is your feature request related to a problem?
In recent months TSPU in Russia has begun monitoring server connection patterns that deviate from normal browsing behavior — specifically, an anomalous number of connections within a short period of time. Article in russian dpi-tls-june-2026
The issue affects clients on Xray-core v25.10.15 and above due to changes in the default
xmuxsettings from 32-16 to 1. This leads to a large number of simultaneous connections.Describe the solution you'd like
Adding
xmuxsettings in theextrasection on the client side solves the issue, but these settings get reset after a subscription update.Could you add
xmuxconfiguration fields to the XHTTP form and pass them in the subscription? This would resolve the issue mentioned above and eliminate the need for clients to manually reconfigure their settings after every subscription update.Alternatives you've considered
No response
Concrete use case
Clients running the latest Xray versions are forced to manually add
xmuxconfiguration for XHTTP connections when connecting to servers behind DPI blockersMockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Frontend (UI / panel pages), Subscription (share links / Clash / JSON), Xray config generation
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 11, 2026):
Good, well-scoped request. Here is what the codebase already has and what is still missing.
What already works (v3.3.0)
The subscription service in
internal/sub/service.go— specificallybuildXhttpExtra— already forwardsxmuxto clients when the field is present in the inbound'sxhttpSettingsJSON:The comment in that function explicitly notes: "client-only values are included only when present in the inbound JSON. Some deployments/imported configs carry them there, and the subscription link is the only place clients can receive them."
The
XHttpStreamSettingsSchema(frontend/src/schemas/protocols/stream/xhttp.ts) already definesxmuxas an optional field on the shared stream schema used by both inbounds and outbounds, and all six knobs are typed there (maxConcurrency,maxConnections,cMaxReuseTimes,hMaxRequestTimes,hMaxReusableSecs,hKeepAlivePeriod).What is missing
The inbound XHTTP form (
frontend/src/pages/inbounds/form/transport/xhttp.tsx) does not expose anyxmuxfields. The outbound XHTTP form (frontend/src/pages/xray/outbounds/transport/xhttp.tsx) already has a complete, toggle-gated xmux section that serves as a direct model.What a PR would need to do
Form.Itemblocks tofrontend/src/pages/inbounds/form/transport/xhttp.tsx, under `['streamSettings', 'xhttpSettings', 'xmux', ...]' paths — mirroring the outbound form.Note: xray-core's server runtime ignores the
xmuxfield in an inbound config, so saving it there has no effect on the server itself — it is purely a mechanism for the panel to pushxmuxdefaults to clients through subscription links.@MHSanaei commented on GitHub (Jun 12, 2026):
xmux (connection multiplexing) is a client-side / outbound dialer setting — xray-core''s XHTTP inbound (server) does not consume it, so the panel intentionally exposes xmux only on outbounds and strips it from inbound stream settings. There''s nothing for an inbound to do with xmux values, which is why the fields aren''t shown there. Closing as not applicable; the xmux fields remain available where they take effect (outbounds).