[GH-ISSUE #6090] [Bug]: VLESS node works in v2rayN but gets Timeout in Clash Verge #4212

Closed
opened 2026-10-31 20:38:00 +07:00 by bsakaguchi · 8 comments
Owner

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

  • Clash Verge Rev Version: v3.5.2
  • OS Platform: Windows
  • Clash Core: Mihomo (Clash Meta)

The same VLESS node connects and functions properly in v2rayN, but constantly fails with a Timeout error in Clash Verge Rev (v3.5.2).

Manually adding skip-cert-verify: true or adding script overrides does not resolve the Timeout issue.

How to reproduce the problem

  1. Import a profile containing a VLESS node (with Vision / XUDP) into Clash Verge Rev v3.5.2.
  2. Run a latency check or connect to the VLESS node.
  3. The node status shows Timeout.
  4. The exact same node configuration works as expected when tested in v2rayN.

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

  • 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 @dayudayupao on GitHub (Jul 24, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6090 ### Describe the bug ### Software Version - **Clash Verge Rev Version:** v3.5.2 - **OS Platform:** Windows - **Clash Core:** Mihomo (Clash Meta) --- The same VLESS node connects and functions properly in v2rayN, but constantly fails with a `Timeout` error in Clash Verge Rev (v3.5.2). Manually adding `skip-cert-verify: true` or adding script overrides does not resolve the `Timeout` issue. ### How to reproduce the problem 1. Import a profile containing a VLESS node (with Vision / XUDP) into Clash Verge Rev v3.5.2. 2. Run a latency check or connect to the VLESS node. 3. The node status shows `Timeout`. 4. The exact same node configuration works as expected when tested in v2rayN. --- ### 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 ```shell ``` ### 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 - [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:38:00 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dayudayupao commented on GitHub (Jul 24, 2026):

But after I set the minimum version to 1.0.0, it worked. so amazing

<!-- gh-comment-id:5068069837 --> @dayudayupao commented on GitHub (Jul 24, 2026): But after I set the minimum version to 1.0.0, it worked. so amazing
Author
Owner

@aishlai commented on GitHub (Jul 24, 2026):

但是当我把最低版本设置为 1.0.0 之后,它就生效了。太神奇了!

设置成0,或者1.0.0 都可以

<!-- gh-comment-id:5069255274 --> @aishlai commented on GitHub (Jul 24, 2026): > 但是当我把最低版本设置为 1.0.0 之后,它就生效了。太神奇了! 设置成0,或者1.0.0 都可以
Author
Owner

@zy1917315170 commented on GitHub (Jul 24, 2026):

我也遇到了这个问题

<!-- gh-comment-id:5069572085 --> @zy1917315170 commented on GitHub (Jul 24, 2026): 我也遇到了这个问题
Author
Owner

@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.

<!-- gh-comment-id:5074234543 --> @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.
Author
Owner

@MHSanaei commented on GitHub (Jul 25, 2026):

@claude

<!-- gh-comment-id:5080310493 --> @MHSanaei commented on GitHub (Jul 25, 2026): @claude
Author
Owner

@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 minClientVer no longer means "no floor" — the core substitutes a hardcoded default of 26.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:

[Info] transport/internet/tcp: REALITY: processed invalid connection from <ip>: authentication failed or validation criteria not met

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-verify and 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 (or 0.0.0 / 1.0.0) → Save. 26.7.11 is the version currently pinned in go.mod:24 (v1.260327.1-0.20260711155151-…); the panel's version picker also allows rolling back to v26.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 in frontend/src/test/golden/fixtures/security/reality-basic.json:9).
  • internal/web/service/xray.go:254-295 — the only transforms applied to streamSettings are deleting settings, externalProxy, the finalmask+REALITY heal, and liftXhttpSessionIDKeys. realitySettings is otherwise untouched.
  • internal/database/model/model.go:302-305 — GenXrayInboundConfig writes the stored streamSettings straight into the Xray config; only StripInboundXhttpClientFields runs.
  • A repo-wide grep for minClientVer outside 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 existing settings deletion:

		// Remove the "settings" field under "tlsSettings" and "realitySettings"
		tlsSettings, ok1 := stream["tlsSettings"].(map[string]any)
		realitySettings, ok2 := stream["realitySettings"].(map[string]any)
		if ok1 || ok2 {
			if ok1 {
				delete(tlsSettings, "settings")
			} else if ok2 {
				delete(realitySettings, "settings")
			}
		}

		// xray-core v26.7.11 turned a blank REALITY minClientVer into a 26.3.27
		// floor instead of "no floor", so every client core older than that is
		// silently diverted to the fallback dest. Pin the historical behaviour
		// for inbounds that never set the field, the same way
		// liftXhttpSessionIDKeys heals the XHTTP session-key rename.
		if ok2 && stream["security"] == "reality" {
			if ver, _ := realitySettings["minClientVer"].(string); ver == "" {
				realitySettings["minClientVer"] = "0.0.0"
			}
		}

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_HealsFinalMaskRealityCombo in internal/web/service/inbound_finalmask_reality_test.go:186 — seed a row with {"security":"reality","realitySettings":{}} via seedInboundConflict, call GetXrayConfig, and assert the emitted realitySettings["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 new pages.inbounds.form.minClientVerHint key in all 13 files under internal/web/translation/, and only reaches users once the Vite build regenerates internal/web/dist/.

Minor adjacent note in the same block: else if ok2 means an inbound that carries both tlsSettings and realitySettings (e.g. security toggled from tls to reality, leaving the old object behind) keeps realitySettings.settings in the generated config. Harmless today since xray-core ignores unknown fields, but if ok2 looks like the intended behaviour.

Recommend closing this as a duplicate of #5922.

<!-- gh-comment-id:5080311307 --> @github-actions[bot] commented on GitHub (Jul 25, 2026): **Claude finished @MHSanaei's task in 8m 38s** —— [View job](https://github.com/MHSanaei/3x-ui/actions/runs/30172258363) --- ### 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 `minClientVer` no longer means "no floor" — the core substitutes a hardcoded default of `26.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: ``` [Info] transport/internet/tcp: REALITY: processed invalid connection from <ip>: authentication failed or validation criteria not met ``` 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-verify` and 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` (or `0.0.0` / `1.0.0`) → Save. `26.7.11` is the version currently pinned in `go.mod:24` (`v1.260327.1-0.20260711155151-…`); the panel's version picker also allows rolling back to `v26.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 in `frontend/src/test/golden/fixtures/security/reality-basic.json:9`). - `internal/web/service/xray.go:254-295` — the only transforms applied to `streamSettings` are deleting `settings`, `externalProxy`, the finalmask+REALITY heal, and `liftXhttpSessionIDKeys`. `realitySettings` is otherwise untouched. - `internal/database/model/model.go:302-305` — `GenXrayInboundConfig` writes the stored `streamSettings` straight into the Xray config; only `StripInboundXhttpClientFields` runs. - A repo-wide grep for `minClientVer` outside 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 existing `settings` deletion: ```go // Remove the "settings" field under "tlsSettings" and "realitySettings" tlsSettings, ok1 := stream["tlsSettings"].(map[string]any) realitySettings, ok2 := stream["realitySettings"].(map[string]any) if ok1 || ok2 { if ok1 { delete(tlsSettings, "settings") } else if ok2 { delete(realitySettings, "settings") } } // xray-core v26.7.11 turned a blank REALITY minClientVer into a 26.3.27 // floor instead of "no floor", so every client core older than that is // silently diverted to the fallback dest. Pin the historical behaviour // for inbounds that never set the field, the same way // liftXhttpSessionIDKeys heals the XHTTP session-key rename. if ok2 && stream["security"] == "reality" { if ver, _ := realitySettings["minClientVer"].(string); ver == "" { realitySettings["minClientVer"] = "0.0.0" } } ``` 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_HealsFinalMaskRealityCombo` in `internal/web/service/inbound_finalmask_reality_test.go:186` — seed a row with `{"security":"reality","realitySettings":{}}` via `seedInboundConflict`, call `GetXrayConfig`, and assert the emitted `realitySettings["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 new `pages.inbounds.form.minClientVerHint` key in **all 13** files under `internal/web/translation/`, and only reaches users once the Vite build regenerates `internal/web/dist/`. Minor adjacent note in the same block: `else if ok2` means an inbound that carries both `tlsSettings` and `realitySettings` (e.g. security toggled from tls to reality, leaving the old object behind) keeps `realitySettings.settings` in the generated config. Harmless today since xray-core ignores unknown fields, but `if ok2` looks like the intended behaviour. Recommend closing this as a duplicate of #5922.
Author
Owner

@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.

<!-- gh-comment-id:5084766724 --> @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.
Author
Owner

@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 minClientVer no longer means "no floor" — the core substitutes a default of 26.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:

[Info] transport/internet/tcp: REALITY: processed invalid connection from <ip>: authentication failed or validation criteria not met

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-verify and 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:

Edit the inbound → Security → REALITY → set Min Client Ver to 0 (or 0.0.0 / 1.0.0) → Save.

3x-ui does not set, default or strip minClientVer anywhere — 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 minClientVer as 0.0.0 when 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.

<!-- gh-comment-id:5091426710 --> @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 `minClientVer` no longer means "no floor" — the core substitutes a default of `26.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: ``` [Info] transport/internet/tcp: REALITY: processed invalid connection from <ip>: authentication failed or validation criteria not met ``` 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-verify` and 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: > Edit the inbound → Security → REALITY → set **Min Client Ver** to `0` (or `0.0.0` / `1.0.0`) → Save. 3x-ui does not set, default or strip `minClientVer` anywhere — 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 `minClientVer` as `0.0.0` when 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.
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#4212
No description provided.