mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6278] [Bug]: VLESS Reality + XTLS Vision connection failed with Xray 26.7.28 and Clash Verge Rev v2.5.2 (REALITY authentication failed) #4261
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#4261
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 @sheenisme on GitHub (Aug 21, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6278
Describe the bug
Hello,
I am using 3x-ui to deploy a VLESS Reality server on an AWS EC2 Ubuntu instance. The server is generated and managed through 3x-ui, but the client cannot establish a connection.
The client always reports:
I have checked all important Reality parameters and they appear to be consistent between the server and client:
xray x25519However, the Reality handshake still fails.
How to reproduce the problem
Environment
Server
Client
The Xray debug log shows:
Server inbound configuration (sanitized)
Client configuration (sanitized)
Expected behavior
successful
Actual behavior
fail
Relevant logs
Screenshots
3x-ui version
3.6.0
Xray-core version
26.7.28
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 26.04
Which parts of the panel are affected?
Xray config generation
Browser (only if it is a UI bug)
Chrome
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Aug 21, 2026):
This is not a 3x-ui config-generation defect — your inbound is fine. The failure is Xray-core's REALITY client-version gate, and your own server log contains the proof:
That is the version Mihomo reports inside the REALITY auth payload: 1.8.2. Since Xray-core v26.7.11, leaving Min Client Ver blank does not mean "any version" — the core substitutes a built-in floor of 26.3.27.
1.8.2 < 26.3.27, so the connection is rejected after the key check and diverted to the disguise target, which is what surfaces on the client asREALITY authentication failed. The fact that your log got as far as printingforwarded SNI,ClientShortIdandAuthKey[:16]means your UUID, private/public key pair, short ID and SNI were all accepted — exactly as you verified.Fix
1.0.0No key regeneration, no client change, no core downgrade needed. The trade-off is stated in the field's own tooltip (
internal/web/translation/en-US.json:608):Answering your four questions directly:
DockerInit.sh:35pinsv26.7.28, which carries the floor.1.8.2and has no reason to track Xray-core's release numbering.Inbound.GenXrayInboundConfigwrites your storedstreamSettingsinto the Xray config as raw JSON (internal/database/model/model.go:372-386); the panel never reads or rewritesminClientVer, and the form defaults it to an empty string (frontend/src/schemas/protocols/security/reality.ts:61,minClientVer: z.string().default('')).flow: xtls-rprx-visionon both sides is correct.I could not open the attached screenshot in this session; if the fix above does not clear it, please paste the client error text and the server log lines verbatim rather than as an image.
Closing as a duplicate of #5957 (same root cause, also #6034 / #5922 / #5943). Labels updated:
bug→duplicate+question.Verdict: Duplicate
Severity: N/A
Confidence: High
Root cause: No panel-side defect. Upstream: Xray-core substitutes
MinClientVer = 26.3.27whenrealitySettings.minClientVeris empty (XTLS/Xray-core commitaf7eb680,infra/conf/transport_security.go, 2026-07-11, first bundled by 3x-ui v3.5.0). Trigger: a REALITY inbound with Min Client Ver left blank plus a non-Xray-core client. The panel passes the field through untouched —internal/database/model/model.go:372-386— and defaults it to''atfrontend/src/schemas/protocols/security/reality.ts:61. I could not read the vendored xray-core source in this checkout (module cache is outside the working directory), so the upstream file/commit reference is carried over from the #5957 / #6034 threads and the maintainer's confirmation there, not re-read here; the26.3.27literal is confirmed in this repo atinternal/web/translation/en-US.json:608anddocs/content/docs/en/config/reality.mdx:121-127.Already fixed: Not applicable as a code fix — the behaviour is upstream and intentional. The discoverability fix shipped in
a2774bf2"fix(ui): explain the REALITY client version gate and drop the impossible placeholder (#6125)", whichgit tag --containsputs in v3.6.0 — the release you are running. It added the Min Client Ver tooltip (frontend/src/pages/inbounds/form/security/reality.tsx:180-193) and the "Old client cores rejected by default" callout indocs/content/docs/{en,ru,fa,zh}/config/reality.mdx.Duplicate of: #5957 — blank
minClientVerlets Xray-core apply its built-in 26.3.27 floor, rejecting third-party client cores. Related: #6034, #6077.Evidence:
DockerInit.sh:35—curl -sfLRO "https://github.com/XTLS/Xray-core/releases/download/v26.7.28/Xray-linux-${ARCH}.zip"(bundled core matches the reporter's 26.7.28).frontend/src/schemas/protocols/security/reality.ts:61—minClientVer: z.string().default('').internal/database/model/model.go:386—StreamSettings: json_util.RawMessage(streamSettings), with the only pre-processing being xhttp/Hysteria healing at :372-380, sominClientVeris never touched.internal/web/translation/en-US.json:608(quoted above) anddocs/content/docs/en/config/reality.mdx:121-127.frontend/src/test/stream-wire-normalize.test.ts:36—expect(validateRealityClientVer('26.3.27')).toBeUndefined()pins the accepted format, so1.0.0is a valid entry.internal/web/service/server.go:830—if major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27), i.e. the in-panel Xray version switcher will not offer anything belowv26.6.27, so downgrading is not a route out of this from the UI.Not determined: Whether setting Min Client Ver to
1.0.0clears it on your specific setup — I cannot run a panel or a client here. Your reply after step 2 above would settle it; if it still fails with the same string, theClientVerline will have changed meaning and this is a different problem.This reply was generated automatically. A maintainer may follow up.
@sheenisme commented on GitHub (Aug 21, 2026):
I have set Min Client Ver to "1.0.0",but it still fails.
@sheenisme commented on GitHub (Aug 21, 2026):
I actually noticed the
minClientVerissue before opening this report and already tested the suggested fix.I changed:
to:
and restarted Xray. However, the connection still failed with the same error:
Therefore, I believe this is not caused by the default REALITY client version gate.
Here is my detailed debugging information.
Environment
Server
Client
Client configuration (sanitized)
Server inbound configuration (sanitized)
Additional verification
1. Reality key pair verification
I verified the private/public key pair:
The generated public key exactly matches the client configuration.
2. Network connectivity
TCP connection is successful:
Result:
3. Target server availability
The Reality target is reachable:
returns HTTP 200.
Xray server debug log
The server receives the Reality handshake:
The important point is that the handshake reaches the authentication stage successfully:
However, the handshake does not complete.
Clash Verge Rev log
The client reports:
I also checked:
minClientVer = 1.0.0tested ✅The issue still persists.
Could this be related to another REALITY compatibility issue in Xray-core 26.7.28, or is there any other configuration field that should be checked?
@sheenisme commented on GitHub (Aug 23, 2026):
After setting Max Time Diff to 9999, enabling Sniffing, and setting xVer to 0, the REALITY connection appears to work correctly.