mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #4578] [Bug]: Shared client applies xtls-rprx-vision flow to XHTTP inbound after multi-inbound migration #3141
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#3141
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 @yelloduxx on GitHub (May 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4578
Describe the bug
After upgrading to
3.1.0and using the new multi-inbound client model, a single shared VLESS client can be attached to multiple inbounds that require differentflowbehavior.In my case the same client email/subscription is attached to:
flow: xtls-rprx-visionis requiredflowmust be empty / omittedAfter migration, the client became a global record with
flow = xtls-rprx-vision. That global flow was also applied to the XHTTP inbound throughclient_inbounds.flow_override/ generated runtime config. The subscription generated an XHTTP link withflow=xtls-rprx-vision, and the XHTTP profile did not work in clients/ping showedn/a.The runtime Xray config also initially missed this shared client on the XHTTP inbound until the panel was restarted after migration. After restart the client appeared in the XHTTP inbound, but it still had the wrong
flow.The issue was fixed manually by clearing the flow only for the XHTTP attachment while keeping
xtls-rprx-visionfor the TCP attachments.How to reproduce the problem
flow: xtls-rprx-vision3.1.0so clients are migrated into the new globalclientstable plusclient_inboundsattachments./usr/local/x-ui/bin/config.json.Expected behavior
Flow should be treated as an inbound-specific/client-attachment property when a global client is attached to multiple inbounds.
For the same shared client:
flow: xtls-rprx-visionflowThe generated subscription links and runtime Xray config should reflect the per-inbound flow value.
Actual behavior
The shared/global client flow was applied to the XHTTP inbound too.
The generated XHTTP subscription link included
flow=xtls-rprx-vision, and the client profile did not work / ping showedn/a.Manually changing the database to clear only the XHTTP attachment flow fixed the issue:
After restarting
x-ui, the generated Xray config became correct:The XHTTP subscription link also stopped including
flow=xtls-rprx-vision, and the profile started working.Relevant logs
No Xray startup error occurs for the wrong-flow case. Xray starts successfully, but the generated XHTTP client profile fails in clients/ping.
I verified the mismatch by comparing:
Before the manual fix, the XHTTP generated link contained
flow=xtls-rprx-vision. After clearing the XHTTP attachment flow override and restarting the panel, it no longer containedflowand started working.Screenshots
No response
3x-ui version
3.1.0
Xray-core version
26.4.25
How did you install 3x-ui?
Manual build from source
Operating system
Ubuntu 22.04.5 LTS
Which parts of the panel are affected?
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting