[GH-ISSUE #5232] [Bug]: vision flow config not delivered via subscription update #3665

Closed
opened 2026-10-31 20:34:05 +07:00 by bsakaguchi · 1 comment
Owner

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

  1. Have vless-xhttp-reality inbound with vless enc set.
  2. Open Clients page, set client flow setting xtls-rprx-vision.
  3. Open client app, request subscription update, get updated client config.
  4. flow setting is not set in client config, it gets empty field

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 1. Have vless-xhttp-reality inbound with vless enc set. 2. Open Clients page, set client flow setting xtls-rprx-vision. 3. Open client app, request subscription update, get updated client config. 4. flow setting is not set in client config, it gets empty field ### 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 ```shell ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:05 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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, streamNetwork is "xhttp", not "tcp", so the condition is never true and flow= 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 whenever client.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 accept streamNetwork == "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.

<!-- gh-comment-id:4694744438 --> @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, `streamNetwork` is `"xhttp"`, not `"tcp"`, so the condition is never true and `flow=` 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 whenever `client.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 accept `streamNetwork == "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.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3665
No description provided.