mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6712] [MERGED] fix(sub): carry REALITY ML-KEM hint in VLESS links #6427
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#6427
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6712
Author: @libmur-dev
Created: 10/1/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix/vless-share-mlkem-hint📝 Commits (5)
3ed820bfix(sub): carry REALITY ML-KEM hint in VLESS links093451ffix(link): accept REALITY ML-KEM boolean aliasesbf57a7atest(frontend): isolate Happ preset notifications84de7adMerge origin/main into pr/67121a5100efix(link): keep the ML-KEM hint out of Xray REALITY settings📊 Changes
19 files changed (+106 additions, -16 deletions)
View changed files
📝
docs/components/tools/reality-config-generator.tsx(+1 -0)📝
docs/content/docs/en/config/reality.mdx(+5 -4)📝
docs/content/docs/fa/config/reality.mdx(+3 -1)📝
docs/content/docs/ru/config/reality.mdx(+6 -5)📝
docs/content/docs/zh/config/reality.mdx(+1 -1)📝
docs/lib/xray/reality.test.ts(+2 -0)📝
docs/lib/xray/reality.ts(+2 -0)📝
docs/lib/xray/subscription.test.ts(+9 -0)📝
docs/lib/xray/subscription.ts(+4 -0)📝
frontend/src/lib/xray/inbound-link.ts(+1 -0)📝
frontend/src/test/__snapshots__/inbound-link.test.ts.snap(+2 -2)📝
frontend/src/test/happ-settings-presets.test.tsx(+3 -0)📝
frontend/src/test/inbound-link.test.ts(+16 -0)📝
frontend/src/test/outbound-link-parser.test.ts(+10 -0)📝
internal/sub/endpoint.go(+9 -1)📝
internal/sub/host_sub_test.go(+7 -1)📝
internal/sub/service.go(+1 -0)📝
internal/sub/service_sharelink_test.go(+1 -0)📝
internal/util/link/outbound_helpers_test.go(+23 -1)📄 Description
English
Fixes #6555.
Problem
3x-ui already enables
reality-opts.support-x25519mlkem768in Clash/Mihomo subscriptions, but raw VLESS REALITY links did not carry the equivalent URI hint. As a result, importing the same node through avless://link could fail against Xray-core 26.9.8+ even though the Clash subscription worked.Mihomo parses this VLESS URI parameter in
common/convert/v.go, merged in MetaCubeX/mihomo#3199.Changes
support-x25519mlkem768=truefrom both backend and frontend VLESS REALITY link generators;trueand1;falsefor manually-created and legacy configurations;The generated share-link default intentionally matches the existing Clash subscription behavior. The outbound toggle remains explicit so users targeting older REALITY servers can keep it disabled.
Verification
go test -shuffle=on -count=1 ./...go build ./...golangci-lint run— 0 issuesThe frontend job is reported as failed only because its final
npm audit --omit=dev --audit-level=highstep finds the pre-existingbrace-expansionand DOMPurify advisories. The current upstreammainrun fails at the same Audit step; dependency upgrades are intentionally not bundled into this fix.The test-only Happ notification stub prevents an existing global Ant Design toast root from surviving jsdom teardown under the full parallel suite. It does not change production behavior.
Русский
Закрывает #6555.
Проблема
3x-ui уже включает
reality-opts.support-x25519mlkem768в подписках Clash/Mihomo, но обычные ссылки VLESS REALITY не передавали эквивалентную подсказку URI. Поэтому импорт одного и того же узла черезvless://мог не подключаться к Xray-core 26.9.8+, хотя Clash-подписка работала.Mihomo разбирает этот параметр VLESS URI в
common/convert/v.go; поддержка добавлена в MetaCubeX/mihomo#3199.Изменения
support-x25519mlkem768=trueдобавляется серверным и фронтенд-генераторами ссылок VLESS REALITY;trueи1;falseпо умолчанию для ручных и старых конфигураций;Значение в генерируемой ссылке намеренно совпадает с текущим поведением Clash-подписки. Переключатель исходящего соединения остаётся явным, чтобы для старых REALITY-серверов параметр можно было не включать.
Проверка
go test -shuffle=on -count=1 ./...go build ./...golangci-lint run— 0 замечанийFrontend-job отмечен как failed только потому, что его последний шаг
npm audit --omit=dev --audit-level=highнаходит уже существующие advisory дляbrace-expansionи DOMPurify. Текущий запуск upstreammainпадает на том же шаге Audit; обновление зависимостей намеренно не включено в этот fix.Тестовая подмена уведомления Happ не позволяет существующему глобальному toast-root Ant Design пережить teardown jsdom в полном параллельном наборе. Production-поведение не изменяется.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.