mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
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#4391
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 @jshir700 on GitHub (Sep 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6555
Describe the bug
Xray-core v26.9.8 requires the REALITY ClientHello to carry
X25519MLKEM768before the optionalX25519key share, otherwise the handshake is silently redirected to the fallback target. Non-Xray clients (Mihomo, Surge, etc.) needsupport-x25519mlkem768: truein their REALITY config.PR #6451 (merged 2026-09-11, released in v3.8.0) correctly added backend support —
internal/sub/clash_service.go:1135unconditionally setsrealityOpts["support-x25519mlkem768"] = truefor all Clash-sub REALITY proxies. The testTestBuildProxy_VLESSRealityFieldsForClashasserts this. Documentation was also updated in 4 languages.However, PR #6451 did not touch any frontend files. There is no schema entry, no form field, no VLESS link-generation parameter, and no URI-query parsing for this flag. Users who rely on VLESS share links (not Clash subs) will hit the v26.9.8+ breakage even on the latest panel version.
This means:
support-x25519mlkem768, may fail against v26.9.8+ serversHow to reproduce the problem
pbk,sid,spx,fp,sni,flowbut nosupport-x25519mlkem768.support-x25519mlkem768: true.The output is inconsistent: same panel, same server, two different client outputs.
Expected behavior
support-x25519mlkem768=truefor REALITY inbounds (matching what the Clash sub emits).support-x25519mlkem768=trueshould populate the form field.Actual behavior
The following frontend paths are missing this field entirely:
frontend/src/schemas/protocols/security/reality.tsRealityClientSettingsSchemahas 5 fieldssupportX25519Mlkem768frontend/src/pages/xray/outbounds/security/reality.tsxfrontend/src/lib/xray/inbound-link.tspbk/fp/sni/sid/spx/pqvsupport-x25519mlkem768frontend/src/lib/xray/outbound-link-parser.tssupport-x25519mlkem768docs/lib/xray/reality.tsRealityConfiginterface +realityClientLink()Relevant logs
Screenshots
N/A — the field simply does not exist in the UI.
3x-ui version
v3.8.0 (commit
837addf6, released 2026-09-14) — the latest releaseXray-core version
Server: v26.9.8+ (breakage threshold); Client: any non-Xray client that needs the flag
How did you install 3x-ui?
install.sh script
Operating system
Any
Which parts of the panel are affected?
Frontend (UI / panel pages), Xray config generation, Subscription (share links / Clash / JSON)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Sep 15, 2026):
Your reading of the frontend is accurate — every file and field you list checks out — but this is not a defect left behind by #6451, so I have reclassified it from
bugtoenhancement.support-x25519mlkem768is a Clash/Mihomo YAML key underreality-opts; it is not an Xray-core REALITY field and it is not part of thevless://URI schema the panel emits. #6451 left link generation alone deliberately, and said so in the documentation it shipped.What I confirmed in the source
Your table is correct, field for field:
frontend/src/schemas/protocols/security/reality.ts—RealityClientSettingsSchemahas exactlypublicKey,fingerprint,serverName,spiderX,mldsa65Verify.frontend/src/lib/xray/inbound-link.ts:454-471setssecurity/pbk/fp/sni/sid/spx/pqvand nothing else; the second emission site at:569-580matches.frontend/src/lib/xray/outbound-link-parser.ts:488-495parses exactly those six reality params.frontend/src/pages/xray/outbounds/security/reality.tsxrenders the six fields you name.x25519mlkem768hits onlyinternal/sub/clash_service.go:1135and its two tests.Why this is not "#6451 forgot the frontend"
The same commit (
0a2cd789,fix(sub): enable ML-KEM for Mihomo REALITY subscriptions (#6451)) wrote this intodocs/content/docs/en/config/reality.mdx:132-133:That is an explicit statement of scope, not an oversight: the Clash YAML subscription is a client config the panel generates, so it can set a Mihomo knob; a
vless://link is a transport descriptor and only carries XTLS URI-schema parameters.Two corrections to the report itself:
The injection is not unconditional.
internal/sub/clash_service.go:1133gates it:realityOptsis only populated from a non-emptypublicKeyorshortId(:1127-1132), so a REALITY node with neither gets noreality-optsblock and no flag.Your file list would create a new inconsistency rather than remove one. The raw links a subscription actually serves are built in Go, not TypeScript:
internal/sub/service.go:1916applyShareRealityParams()emitssni/pbk/sid/fp/pqv/spx, andinternal/util/link/outbound.go:746-753parses them back.frontend/src/lib/xray/inbound-link.tsis the panel-UI mirror of that Go function. Patching only the frontend would make the panel's "copy link" button and the subscription URL hand out different links for the same client — the drift the "three independent link implementations" rule inCLAUDE.mdexists to prevent. Separately,docs/lib/xray/reality.ts:97realityClientLink()is a documentation example generator (it does not even carrypqv), not a panel code path.On the outbound form toggle specifically: that form edits
streamSettings.realitySettings.*, which is handed to Xray-core as the outbound's REALITY config — every field it renders (serverName,fingerprint,publicKey,shortId,spiderX,mldsa65Verify) is an Xray-core REALITY outbound field. I could not read the pinnedgithub.com/xtls/xray-core v1.260327.1-0.20260908222543-52a412d9e2f5source from this checkout, so treat this as an inference rather than a confirmed fact: nothing in this repository's Xray config surface knows asupportX25519Mlkem768option, so a toggle there looks like it would write a key nothing reads. Mihomo's flag is a Mihomo knob, and the Clash YAML is the one output the panel controls where it belongs.The one thing that decides whether this is worth doing
I could not verify that Mihomo parses
support-x25519mlkem768out of avless://URI at all. I have no network access in this environment, and the whole request rests on that claim. So:What works today
vless://link: it already carries the flag (internal/sub/clash_service.go:1135) and defaultsclient-fingerprinttochrome(:1138).reality.mdx:130-131— the flag cannot rescue a fingerprint that does not offer ML-KEM; pickchromewith Mihomo's uTLS v1.8.7.I retitled the issue from "[Bug]: frontend missing
support-x25519mlkem768for REALITY (follow-up to #6451)" because your own acceptance criteria need the Go link builder and parser too, not just the frontend.Related, but a different root cause (the upstream Xray-core handshake change itself rather than link contents): #6543 and #6408. Neither is a duplicate of this.
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.