mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-09 14:45:02 +03:00
fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712)
* fix(sub): carry REALITY ML-KEM hint in VLESS links Keep raw share links in parity with Clash subscriptions for Xray 26.9.8+. Preserve the URI hint through Go and frontend imports, expose it in the outbound editor, and update the documentation tooling. * fix(link): accept REALITY ML-KEM boolean aliases * test(frontend): isolate Happ preset notifications * fix(link): keep the ML-KEM hint out of Xray REALITY settings support-x25519mlkem768 is a Mihomo reality-opts option; xray-core's REALITYConfig (infra/conf/transport_security.go) has no such field and its JSON loader drops unknown keys silently. The PR also stored it as realitySettings.supportX25519Mlkem768 in Xray outbounds (form switch, Go and TS link import, docs outbound builders) and as an inbound settings default that is stripped before Xray and read by no link generator. The outbound switch therefore did nothing, and imported links carried a dead key into the JSON subscription. The share-link hint itself stays: Go, frontend and docs still emit support-x25519mlkem768=true on VLESS REALITY links and drop it on a TLS host override. --------- Co-authored-by: libmur-dev <333915961+libmur-dev@users.noreply.github.com> Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -129,10 +129,11 @@ vless://<uuid>@<server>:443?security=reality&pbk=<public-key>&sid=<short-id>&sni
|
||||
nodes, including external links, and uses `chrome` when no fingerprint was set.
|
||||
Explicit fingerprints are preserved: choose one that offers ML-KEM (`chrome`
|
||||
with Mihomo's uTLS v1.8.7); enabling the flag cannot upgrade an old fingerprint.
|
||||
Raw `vless://` links do not carry this Mihomo option, so clients importing them
|
||||
directly still need a persistent override. Very old REALITY servers that reject
|
||||
ML-KEM require a per-node client override setting this option to `false`, or a
|
||||
server upgrade. Clearing the version limit alone does not fix the handshake.
|
||||
Raw `vless://` links carry the equivalent `support-x25519mlkem768=true` hint;
|
||||
clients that support this URI extension, including current Mihomo builds, apply
|
||||
it on import. Very old REALITY servers that reject ML-KEM require a per-node
|
||||
client override setting this option to `false`, or a server upgrade. Clearing
|
||||
the version limit alone does not fix the handshake.
|
||||
|
||||
</Callout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user