[GH-ISSUE #6041] Reality stops working after upgrading from v3.4.2 to v3.5.0 #4187

Closed
opened 2026-10-31 20:37:49 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @wine0204-bit on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6041

Environment

  • OS: Ubuntu
  • x-ui v3.5.0 (downgraded to v3.4.2)
  • Protocol: VLESS + Reality
  • Clients: Hiddify, Shadowrocket

Problem

After upgrading x-ui from v3.4.2 to v3.5.0, all Reality nodes stopped working.

Symptoms:

  • x-ui service runs normally.
  • Xray starts successfully.
  • Port 443 is listening.
  • Hysteria2 works normally on the same VPS.
  • Reality clients connect but cannot access the Internet.

Reproduction

  1. Install x-ui v3.4.2.
  2. Configure a working VLESS + Reality inbound.
  3. Upgrade to x-ui v3.5.0.
  4. Without changing any configuration, Reality stops working.
  5. Downgrade back to x-ui v3.4.2.
  6. Reality immediately works again.

Additional Information

I reproduced the same issue on two different VPS providers.

The issue appears to be related to the handling of Reality client version fields (minClientVer / maxClientVer) after upgrading.

Could you please check whether the upgrade process correctly preserves or initializes these values?

Originally created by @wine0204-bit on GitHub (Jul 19, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6041 ### Environment - OS: Ubuntu - x-ui v3.5.0 (downgraded to v3.4.2) - Protocol: VLESS + Reality - Clients: Hiddify, Shadowrocket ### Problem After upgrading x-ui from **v3.4.2** to **v3.5.0**, all Reality nodes stopped working. Symptoms: - x-ui service runs normally. - Xray starts successfully. - Port 443 is listening. - Hysteria2 works normally on the same VPS. - Reality clients connect but cannot access the Internet. ### Reproduction 1. Install x-ui v3.4.2. 2. Configure a working VLESS + Reality inbound. 3. Upgrade to x-ui v3.5.0. 4. Without changing any configuration, Reality stops working. 5. Downgrade back to x-ui v3.4.2. 6. Reality immediately works again. ### Additional Information I reproduced the same issue on two different VPS providers. The issue appears to be related to the handling of Reality client version fields (`minClientVer` / `maxClientVer`) after upgrading. Could you please check whether the upgrade process correctly preserves or initializes these values?
bsakaguchi 2026-10-31 20:37:49 +07:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@wine0204-bit commented on GitHub (Jul 19, 2026):

Additional finding:

The Reality inbound works immediately after downgrading to x-ui v3.4.2.

No inbound configuration, UUID, private key, public key, short ID, SNI, client or VPS settings were changed.

The only change was the x-ui version.

<!-- gh-comment-id:5015703418 --> @wine0204-bit commented on GitHub (Jul 19, 2026): Additional finding: The Reality inbound works immediately after downgrading to x-ui v3.4.2. No inbound configuration, UUID, private key, public key, short ID, SNI, client or VPS settings were changed. The only change was the x-ui version.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 19, 2026):

This is the same root cause already investigated and confirmed in #5922 (closed there as an upstream Xray-core behavior change, not a 3x-ui defect). Several other reports of the identical failure have since been closed as duplicates of it, including #6011.

Root cause: go.mod confirms v3.5.0 bumped the bundled Xray-core from the pseudo-version pinned in v3.4.2 (v1.260327.1-0.20260627131803-45cf2898ab12) to v1.260327.1-0.20260711155151-50231eaff98c (v26.7.11) — 3x-ui commit 814cda3f ("feat(xray): update xray-core to v26.7.11 and adapt panel"), part of the v3.5.0 release. Comparing the two vendored Xray-core commits directly, upstream's REALITY JSON config loader (infra/conf, REALITYConfig.Build()) changed: previously an empty minClientVer left MinClientVer unset (no restriction); now it defaults to 26.3.27:

if c.MinClientVer != "" {
    // ...parse into config.MinClientVer
} else {
    config.MinClientVer = []byte{26, 3, 27} // change it at your own risk
}

That floor is enforced during the REALITY handshake itself (xtls/reality's tls.go), which only marks a connection as valid REALITY traffic if config.MinClientVer == nil or the client's self-reported core version is >= it; otherwise the connection is silently proxied to the fallback dest instead of your VLESS handler — TLS still "connects", but no proxying happens.

On the 3x-ui side, frontend/src/schemas/protocols/security/reality.ts defaults minClientVer to an empty string, and Inbound.GenXrayInboundConfig() (internal/database/model/model.go:276-315) writes the stored streamSettings straight into Xray's config unchanged (the only transform, StripInboundXhttpClientFields, only touches xHTTP client-dialer fields). So any pre-existing REALITY inbound with Min Client Ver left blank — the common case, including the one you had running under v3.4.2 — silently inherits the new upstream floor purely from the version bump, with no configuration change on your end. This matches your own diagnosis that minClientVer/maxClientVer handling is involved, though the change originates in upstream Xray-core rather than in 3x-ui's own upgrade/migration logic; both Hiddify's and Shadowrocket's bundled cores have been reported below the new floor by other users on #5922.

Workaround without staying on v3.4.2: edit the inbound → Security: REALITY → set Min Client Ver to 0 (or 1.0.0) → Save. This restores the old "accept any client version" behavior while keeping the rest of v3.5.0. Multiple reporters on #5922 confirm this fixes it without any client-side changes.

Continuing discussion on #5922, where this is being tracked. Closing this one as a duplicate.

@MHSanaei

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:5015722676 --> @github-actions[bot] commented on GitHub (Jul 19, 2026): This is the same root cause already investigated and confirmed in #5922 (closed there as an upstream Xray-core behavior change, not a 3x-ui defect). Several other reports of the identical failure have since been closed as duplicates of it, including #6011. **Root cause:** `go.mod` confirms v3.5.0 bumped the bundled Xray-core from the pseudo-version pinned in v3.4.2 (`v1.260327.1-0.20260627131803-45cf2898ab12`) to `v1.260327.1-0.20260711155151-50231eaff98c` (v26.7.11) — 3x-ui commit `814cda3f` ("feat(xray): update xray-core to v26.7.11 and adapt panel"), part of the v3.5.0 release. Comparing the two vendored Xray-core commits directly, upstream's REALITY JSON config loader (`infra/conf`, `REALITYConfig.Build()`) changed: previously an empty `minClientVer` left `MinClientVer` unset (no restriction); now it defaults to `26.3.27`: ```go if c.MinClientVer != "" { // ...parse into config.MinClientVer } else { config.MinClientVer = []byte{26, 3, 27} // change it at your own risk } ``` That floor is enforced during the REALITY handshake itself (`xtls/reality`'s `tls.go`), which only marks a connection as valid REALITY traffic if `config.MinClientVer == nil` or the client's self-reported core version is `>=` it; otherwise the connection is silently proxied to the fallback `dest` instead of your VLESS handler — TLS still "connects", but no proxying happens. On the 3x-ui side, `frontend/src/schemas/protocols/security/reality.ts` defaults `minClientVer` to an empty string, and `Inbound.GenXrayInboundConfig()` (`internal/database/model/model.go:276-315`) writes the stored `streamSettings` straight into Xray's config unchanged (the only transform, `StripInboundXhttpClientFields`, only touches xHTTP client-dialer fields). So any pre-existing REALITY inbound with `Min Client Ver` left blank — the common case, including the one you had running under v3.4.2 — silently inherits the new upstream floor purely from the version bump, with no configuration change on your end. This matches your own diagnosis that `minClientVer`/`maxClientVer` handling is involved, though the change originates in upstream Xray-core rather than in 3x-ui's own upgrade/migration logic; both Hiddify's and Shadowrocket's bundled cores have been reported below the new floor by other users on #5922. **Workaround without staying on v3.4.2:** edit the inbound → Security: REALITY → set **Min Client Ver** to `0` (or `1.0.0`) → Save. This restores the old "accept any client version" behavior while keeping the rest of v3.5.0. Multiple reporters on #5922 confirm this fixes it without any client-side changes. Continuing discussion on #5922, where this is being tracked. Closing this one as a duplicate. @MHSanaei *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@wine0204-bit commented on GitHub (Jul 19, 2026):

Additional finding:

After downgrading to v3.4.2, Reality still did not work when the destination (Dest) was set to Microsoft.

After changing the destination to Intel, Reality immediately started working again.

So the issue may also be related to the selected Reality destination rather than only the panel version.

<!-- gh-comment-id:5015744678 --> @wine0204-bit commented on GitHub (Jul 19, 2026): Additional finding: After downgrading to v3.4.2, Reality still did not work when the destination (Dest) was set to Microsoft. After changing the destination to Intel, Reality immediately started working again. So the issue may also be related to the selected Reality destination rather than only the panel version.
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#4187
No description provided.