[GH-ISSUE #6821] [Question]: ACL4SSR-converted Clash YAML missing encryption / support-x25519mlkem768 on 3.9/3.10 #4542

Closed
opened 2026-10-31 20:40:23 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @shanghainese on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6821

What are you trying to do?

After converting the subscription via acl4ssr, the YAML file for version 3.9.0 was missing support-x25519mlkem768: true, while version 3.10 was missing encryption: mlkem768x25519plus.native... It works after manually adding these entries in OpenClash.

What have you already tried?

No response

3x-ui version

3.10

How did you install 3x-ui?

install.sh script

Operating system

ubuntu 24 and debian 13

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @shanghainese on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6821 ### What are you trying to do? After converting the subscription via acl4ssr, the YAML file for version 3.9.0 was missing `support-x25519mlkem768: true`, while version 3.10 was missing `encryption: mlkem768x25519plus.native`... It works after manually adding these entries in OpenClash. ### What have you already tried? _No response_ ### 3x-ui version 3.10 ### How did you install 3x-ui? install.sh script ### Operating system ubuntu 24 and debian 13 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:40:23 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2026):

3x-ui sends both fields in v3.9.0 and in v3.10. They get lost in the ACL4SSR / subconverter step, which turns share links into Clash YAML. That converter is not part of 3x-ui. The fix is to point OpenClash at the panel's own Mihomo subscription, which already writes both fields, instead of passing the raw link through a converter.

What the panel sends

Raw VLESS links (subPath), in both v3.9.0 and v3.10.0. internal/sub/service.go:1231 and :1243:

params["encryption"] = vlessClientEncryption(settings)
...
case "reality":
    applyShareRealityParams(stream, params, subKey(client))
    params["support-x25519mlkem768"] = "true"

git show v3.9.0:internal/sub/service.go has the same two lines (params["encryption"] = encryption and params["support-x25519mlkem768"] = "true"). The REALITY hint was added in ce221c33 (fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712)), and v3.9.0 already contains that commit. So both versions put both values in the link. If they are missing from the YAML, the converter dropped them. It probably doesn't map these query parameters to Clash fields; that part is my inference, since its code isn't in this repo.

The panel's own Clash/Mihomo YAML writes them as Mihomo fields. internal/sub/clash_service.go:446-449 writes proxy["encryption"] = encryption for VLESS encryption. :1186-1188 writes realityOpts["support-x25519mlkem768"] = true, with the comment "Xray 26.9.8+ rejects REALITY handshakes without an ML-KEM key share".

What to do

  1. In the panel, open subscription settings and turn on the Clash subscription (subClashEnable).
  2. In OpenClash, use https://<your-sub-host>:<port>/mihomo/<sub-id> (or your subClashPath) directly, with no subconverter in between. This is the full Mihomo profile; see docs/content/docs/en/config/subscription.mdx ("Output formats").
  3. If you used ACL4SSR for its routing rules, you can turn on subClashEnableRouting and put your own rules in subClashRules. They are added to the panel-generated profile.

If you need to stay on subconverter, the missing fields have to be fixed in that project. 3x-ui can't fix them on its side.

I changed the title from "[Question]: about x25591 in 3.10" so it says which fields are missing and where.

Verdict: Not a bug (user configuration). The fields are lost in the third-party subconverter/ACL4SSR step, not in 3x-ui.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6167620567 --> @github-actions[bot] commented on GitHub (Oct 14, 2026): 3x-ui sends both fields in v3.9.0 and in v3.10. They get lost in the ACL4SSR / subconverter step, which turns share links into Clash YAML. That converter is not part of 3x-ui. The fix is to point OpenClash at the panel's own Mihomo subscription, which already writes both fields, instead of passing the raw link through a converter. **What the panel sends** Raw VLESS links (`subPath`), in both v3.9.0 and v3.10.0. `internal/sub/service.go:1231` and `:1243`: ```go params["encryption"] = vlessClientEncryption(settings) ... case "reality": applyShareRealityParams(stream, params, subKey(client)) params["support-x25519mlkem768"] = "true" ``` `git show v3.9.0:internal/sub/service.go` has the same two lines (`params["encryption"] = encryption` and `params["support-x25519mlkem768"] = "true"`). The REALITY hint was added in ce221c33 (`fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712)`), and v3.9.0 already contains that commit. So both versions put both values in the link. If they are missing from the YAML, the converter dropped them. It probably doesn't map these query parameters to Clash fields; that part is my inference, since its code isn't in this repo. The panel's own Clash/Mihomo YAML writes them as Mihomo fields. `internal/sub/clash_service.go:446-449` writes `proxy["encryption"] = encryption` for VLESS encryption. `:1186-1188` writes `realityOpts["support-x25519mlkem768"] = true`, with the comment "Xray 26.9.8+ rejects REALITY handshakes without an ML-KEM key share". **What to do** 1. In the panel, open subscription settings and turn on the Clash subscription (`subClashEnable`). 2. In OpenClash, use `https://<your-sub-host>:<port>/mihomo/<sub-id>` (or your `subClashPath`) directly, with no subconverter in between. This is the full Mihomo profile; see `docs/content/docs/en/config/subscription.mdx` ("Output formats"). 3. If you used ACL4SSR for its routing rules, you can turn on `subClashEnableRouting` and put your own rules in `subClashRules`. They are added to the panel-generated profile. If you need to stay on subconverter, the missing fields have to be fixed in that project. 3x-ui can't fix them on its side. I changed the title from "[Question]: about x25591 in 3.10" so it says which fields are missing and where. Verdict: Not a bug (user configuration). The fields are lost in the third-party subconverter/ACL4SSR step, not in 3x-ui. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
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#4542
No description provided.