mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6090] [Bug]: VLESS node works in v2rayN but gets Timeout in Clash Verge #4212
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#4212
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 @dayudayupao on GitHub (Jul 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6090
Describe the bug
Software Version
The same VLESS node connects and functions properly in v2rayN, but constantly fails with a
Timeouterror in Clash Verge Rev (v3.5.2).Manually adding
skip-cert-verify: trueor adding script overrides does not resolve theTimeoutissue.How to reproduce the problem
Timeout.Expected behavior
The VLESS node should be correctly parsed and able to establish a connection in Clash Verge Rev, matching the behavior in v2rayN.
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.5.0
Xray-core version
26.7.11
How did you install 3x-ui?
install.sh script
Operating system
ubuntu24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@dayudayupao commented on GitHub (Jul 24, 2026):
But after I set the minimum version to 1.0.0, it worked. so amazing
@aishlai commented on GitHub (Jul 24, 2026):
设置成0,或者1.0.0 都可以
@zy1917315170 commented on GitHub (Jul 24, 2026):
我也遇到了这个问题
@ErrOzz commented on GitHub (Jul 24, 2026):
Clients: Clash verge for windows, clash verge rev for android, hiddify for android.
The same problem with empty field of minimum client version after panel update to latest version.
error.log in docker:
2026/07/24 23:23:37.208878 [Info] transport/internet/tcp: REALITY: processed invalid connection from my-ip:48858: authentication failed or validation criteria not met
Before:
-deleted all inbounds,
-deleted all clients,
-container restarted,
-created new inbound and clients,
-deleted and imported new config in clash verge.
Worked only after adding minimum client version in inbound settings.
@MHSanaei commented on GitHub (Jul 25, 2026):
@claude
@github-actions[bot] commented on GitHub (Jul 25, 2026):
Claude finished @MHSanaei's task in 8m 38s —— View job
Root cause: upstream xray-core, not the client app
This is the same failure as #5922 (and #6041, #5986, #6004, #5943, #5957, …): the inbound's Min Client Ver field is blank.
Since xray-core v26.7.11 a blank REALITY
minClientVerno longer means "no floor" — the core substitutes a hardcoded default of26.3.27, so every client whose bundled core is older is failed at the REALITY handshake and silently diverted to the fallback dest. That is exactly the log ErrOzz posted:It explains the v2rayN-vs-Clash-Verge split with no other variable: v2rayN ships a current xray-core (≥ 26.3.27, above the floor), while mihomo/Clash.Meta, sing-box (Hiddify) and Shadowrocket ship older cores and get rejected.
skip-cert-verifyand profile overrides cannot help — the rejection happens server-side, before anything the client profile controls.Workaround for reporters (server-side only, no re-import needed): edit the inbound → Security → REALITY → set Min Client Ver to
0(or0.0.0/1.0.0) → Save.26.7.11is the version currently pinned ingo.mod:24(v1.260327.1-0.20260711155151-…); the panel's version picker also allows rolling back tov26.6.27(internal/web/service/server.go:829).What I verified in this checkout
3x-ui never sets, defaults or strips
minClientVer— it is a pure pass-through, so the change of meaning arrives purely from a core bump:frontend/src/schemas/protocols/security/reality.ts:61—minClientVer: z.string().default(''), so the panel stores and emits"minClientVer": ""(visible infrontend/src/test/golden/fixtures/security/reality-basic.json:9).internal/web/service/xray.go:254-295— the only transforms applied tostreamSettingsare deletingsettings,externalProxy, the finalmask+REALITY heal, andliftXhttpSessionIDKeys.realitySettingsis otherwise untouched.internal/database/model/model.go:302-305—GenXrayInboundConfigwrites the storedstreamSettingsstraight into the Xray config; onlyStripInboundXhttpClientFieldsruns.minClientVeroutside the frontend hits nothing but the 13 translation files.I could not open the xray-core source in this run (no network and no module cache available to me), so the specific upstream commit attribution is carried over from the analysis in #5922 rather than re-read here.
Optional panel-side mitigation
Nothing has landed for this yet. The one-place fix that also heals existing rows, node-synced rows and API-created inbounds — without a DB migration, since it rewrites the generated config rather than stored data — is in
internal/web/service/xray.go, right after the existingsettingsdeletion:Trade-off worth deciding explicitly: the upstream floor exists to gate a newer REALITY handshake, so this restores broad client compatibility at the cost of accepting old client cores by default. A narrower variant is to change only the form default (
reality.ts:61→.default('0.0.0')), which fixes newly saved inbounds but leaves every existing one broken.If you take the backend heal, a test fits naturally alongside
TestGetXrayConfig_HealsFinalMaskRealityComboininternal/web/service/inbound_finalmask_reality_test.go:186— seed a row with{"security":"reality","realitySettings":{}}viaseedInboundConflict, callGetXrayConfig, and assert the emittedrealitySettings["minClientVer"]is"0.0.0".Independently of that, the field's meaning is currently invisible in the UI. A tooltip on
frontend/src/pages/inbounds/form/security/reality.tsx:127-132— "blank means the Xray-core default (currently 26.3.27), not unrestricted" — needs a newpages.inbounds.form.minClientVerHintkey in all 13 files underinternal/web/translation/, and only reaches users once the Vite build regeneratesinternal/web/dist/.Minor adjacent note in the same block:
else if ok2means an inbound that carries bothtlsSettingsandrealitySettings(e.g. security toggled from tls to reality, leaving the old object behind) keepsrealitySettings.settingsin the generated config. Harmless today since xray-core ignores unknown fields, butif ok2looks like the intended behaviour.Recommend closing this as a duplicate of #5922.
@GauthierPLM commented on GitHub (Jul 26, 2026):
TLDR, this is the workaround:
Edit the inbound → Security → REALITY → set Min Client Version to 1.0.0 → Save.
Require since xray-core requires a minClientVersion (26.7.11), which many mobile client haven't reached yet (ex: Shadowrocket). Setting a very low minClientVersion should allow most mobile clients to connect without troubles.
@MHSanaei commented on GitHub (Jul 27, 2026):
Closing as a duplicate of #5922, which has the same root cause — and thanks to everyone who narrowed it down here, especially @GauthierPLM for the concise write-up and @ErrOzz for posting the REALITY log line that identifies it.
Root cause: since xray-core v26.7.11, a blank REALITY
minClientVerno longer means "no floor" — the core substitutes a default of26.3.27, so any client whose bundled core is older is rejected at the REALITY handshake and silently diverted to the fallback dest. That is the log ErrOzz saw:It explains the v2rayN-vs-Clash-Verge split with nothing else changing: v2rayN ships a current core, while mihomo/Clash.Meta, sing-box (Hiddify) and Shadowrocket ship older ones.
skip-cert-verifyand profile overrides cannot help, because the rejection happens server-side before anything in the client profile applies.Workaround (server-side, no re-import needed) — as several of you found:
3x-ui does not set, default or strip
minClientVeranywhere — it is a pure pass-through, so the change in meaning comes entirely from the core bump. I verified that in this checkout: the field is stored as the panel receives it and written into the generated config untouched.Still open for a decision, tracked on #5922 rather than here: whether the panel should treat a blank
minClientVeras0.0.0when generating the config, which would heal every existing inbound at once. That restores broad client compatibility but also opts everyone into accepting old client cores by default, which the upstream floor exists to prevent — a deliberate call rather than a bug fix, so I have not made it unilaterally. If you want to weigh in, please do so on #5922 so it stays in one place.