mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5211] [MERGED] feat: implement inbound XMUX form fields #5820
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#5820
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5211
Author: @rqzbeh
Created: 6/11/2026
Status: ✅ Merged
Merged: 6/12/2026
Merged by: @MHSanaei
Base:
main← Head:feat/inbound-xhttp-xmux📝 Commits (8)
e2c1c4efeat: implement inbound XMUX form fields9808db9fix: replace any cast to satisfy eslint2bacc79test: update xhttp form snapshot for XMUX54c1e0bMerge branch 'main' into feat/inbound-xhttp-xmuxe9d5be9Merge branch 'main' into feat/inbound-xhttp-xmux40bc5deMerge branch 'main' into feat/inbound-xhttp-xmux93e4684fix(inbound): persist xmux on save so the XMUX form actually round-trips80af8d4fix(xmux): enforce xray-core's maxConnections/maxConcurrency exclusivity📊 Changes
6 files changed (+190 additions, -4 deletions)
View changed files
📝
frontend/src/lib/xray/inbound-form-adapter.ts(+13 -0)📝
frontend/src/lib/xray/stream-wire-normalize.ts(+36 -2)📝
frontend/src/pages/inbounds/form/transport/xhttp.tsx(+71 -0)📝
frontend/src/test/__snapshots__/inbound-form-blocks.test.tsx.snap(+1 -0)📝
frontend/src/test/outbound-form-adapter.test.ts(+6 -2)📝
frontend/src/test/stream-wire-normalize.test.ts(+63 -0)📄 Description
Summary
Implements the XMUX configuration UI for xHTTP inbound transport, mirroring the existing outbound form.
Why
Fixes https://github.com/MHSanaei/3x-ui/issues/5194.
The
xmuxfields were previously available in the sharedxhttpSettingsschema and handled correctly by the server and subscription logic, but the UI for inbound configurations lacked the form inputs to configure them. This PR adds the XMUX toggle and its nested properties to the inbound form, allowing users to embed XMUX defaults directly in client subscription links without manual JSON editing.Type of change
Areas affected
How was this tested?
I've tested the implementation via Docker (
docker-compose up -d --build) to verify that:maxConcurrency,maxConnections, etc.).xmuxparameters are correctly bundled in the subscription extra parameters.Screenshots / recordings
(N/A - the UI matches the outbound xHTTP form verbatim.)
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.