mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6041] Reality stops working after upgrading from v3.4.2 to v3.5.0 #4187
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#4187
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 @wine0204-bit on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6041
Environment
Problem
After upgrading x-ui from v3.4.2 to v3.5.0, all Reality nodes stopped working.
Symptoms:
Reproduction
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?
@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.
@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.modconfirms v3.5.0 bumped the bundled Xray-core from the pseudo-version pinned in v3.4.2 (v1.260327.1-0.20260627131803-45cf2898ab12) tov1.260327.1-0.20260711155151-50231eaff98c(v26.7.11) — 3x-ui commit814cda3f("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 emptyminClientVerleftMinClientVerunset (no restriction); now it defaults to26.3.27:That floor is enforced during the REALITY handshake itself (
xtls/reality'stls.go), which only marks a connection as valid REALITY traffic ifconfig.MinClientVer == nilor the client's self-reported core version is>=it; otherwise the connection is silently proxied to the fallbackdestinstead of your VLESS handler — TLS still "connects", but no proxying happens.On the 3x-ui side,
frontend/src/schemas/protocols/security/reality.tsdefaultsminClientVerto an empty string, andInbound.GenXrayInboundConfig()(internal/database/model/model.go:276-315) writes the storedstreamSettingsstraight into Xray's config unchanged (the only transform,StripInboundXhttpClientFields, only touches xHTTP client-dialer fields). So any pre-existing REALITY inbound withMin Client Verleft 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 thatminClientVer/maxClientVerhandling 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(or1.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.
@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.