Skip to content

uTLS: Pick "random" only from fingerprints that have X25519MLKEM768 - #7432

Merged
RPRX merged 1 commit into
XTLS:mainfrom
Art34222:utls-random-mlkem
Nov 19, 2026
Merged

RPRX merged 1 commit into
XTLS:mainfrom
Art34222:utls-random-mlkem

Conversation

@Art34222

Copy link
Copy Markdown
Contributor

Since v26.9.9, REALITY servers reject Client Hello that doesn't have X25519MLKEM768 before optional X25519 (XTLS/REALITY@8cdf7bf9c7f0), which is intended according to #7259.

However, 7 of 12 random candidates don't have X25519MLKEM768: hellofirefox_120, hellochrome_120, helloios_13, helloios_14, helloedge_106, hello360_11_0, helloqq_11_1. random is chosen once at startup, so a REALITY client with "fingerprint": "random" can't connect at all until restart, with a chance of about 58% (random is also FAIL in the table of #7259).

This PR keeps only the candidates that have X25519MLKEM768: hellofirefox_148, hellochrome_131, hellochrome_133, hellochrome_155, hellosafari_26_3. The others are moved to OtherFingerprints, so their names still work. Nothing changes for explicitly named fingerprints.

Testing (local VLESS + Vision + REALITY server and client, "fingerprint": "random", 12 starts each):

  • before: 7 of 12 starts could connect
  • after: 12 of 12 starts could connect

go test ./transport/internet/tls/ and TestVlessRealityFingerprints pass.

🤖 Generated with Claude Code

REALITY servers reject Client Hello that doesn't have X25519MLKEM768
before optional X25519 since v26.9.9 (XTLS/REALITY@8cdf7bf), so 7 of 12
`random` candidates (hellofirefox_120, hellochrome_120, helloios_13,
helloios_14, helloedge_106, hello360_11_0, helloqq_11_1) made REALITY
clients fail to connect until restart.

Move them to OtherFingerprints, so their names still work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RPRX RPRX changed the title uTLS: Pick random only from fingerprints that have X25519MLKEM768 uTLS: Pick "random" only from fingerprints that have X25519MLKEM768 Nov 19, 2026
@RPRX
RPRX merged commit b1dfdf2 into XTLS:main Nov 19, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants