mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5232] [Bug]: vision flow config not delivered via subscription update #3665
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#3665
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 @PA4EJIJIA on GitHub (Jun 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5232
Describe the bug
I have vless-xhttp-reality inbound with vless encryption set up.
Latest panel release has this change [fix: enable XTLS vision flow for VLESS+XHTTP+vlessenc in UI and share links] so I tried it. I set client flow xtls-rprx-vision, it appeared in inbound JSON and it does actually work, but the flow setting does not get delivered to client app with subscription update, I had to set it manually client-side. Also tried delete subscription and re-add it in client app - did not help, config still gets delivered without flow setting.
How to reproduce the problem
Expected behavior
I expected flow setting set properly to 'xtls-rprx-vision' after subscription update in client app.
Actual behavior
Instead flow setting is not set in client config, it gets empty field
Relevant logs
Screenshots
No response
3x-ui version
3.3.1
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Subscription (share links / Clash / JSON)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
Yes — Nginx
Before submitting
@github-actions[bot] commented on GitHub (Jun 12, 2026):
The bug is confirmed in the current v3.3.1 source. The fix introduced by #5185 handled VLESS+XHTTP+vlessenc (ML-KEM, no transport TLS), but did not extend to VLESS+XHTTP+REALITY. The two code paths that generate subscription share links still gate flow on TCP-only when security is `reality`.
Root cause — URI share links (`vless://` format)
internal/sub/service.go,genVlessLink, lines 519–523:```go
case "reality":
applyShareRealityParams(stream, params)
if streamNetwork == "tcp" && len(clients[clientIndex].Flow) > 0 {
params["flow"] = clients[clientIndex].Flow // xhttp never reaches this
}
```
Because your inbound uses XHTTP,
streamNetworkis"xhttp", not"tcp", so the condition is never true andflow=is omitted from the share-link URI entirely.Same gap in Clash subscriptions
internal/sub/clash_service.go, line 211:```go
if client.Flow != "" && network == "tcp" {
proxy["flow"] = client.Flow
```
The
&& network == "tcp"guard silently drops the flow for Clash output as well when the transport is XHTTP.JSON subscription is unaffected
internal/sub/json_service.go, lines 345–347 sets flow unconditionally wheneverclient.Flow \!= ""; that path works correctly regardless of transport or security layer.Scope
Both broken paths need the
"reality"case (and the"tls"case for completeness) to acceptstreamNetwork == "xhttp"in addition to"tcp". The default/vlessenc branch added by #5185 is a separate path and is not relevant here.No duplicate or existing open PR was found for this specific XHTTP+REALITY combination.
This reply was generated automatically; a maintainer may follow up.