mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6732] [CLOSED] fix(qr): restore REALITY QR actions and explain PQ restrictions #6433
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#6433
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/6732
Author: @libmur-dev
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:fix/reality-qr-regression📝 Commits (2)
1c68446fix(qr): restore QR actions for ordinary REALITY linksb3836cdfeat(qr): explain post-quantum QR restrictions📊 Changes
22 files changed (+167 additions, -6 deletions)
View changed files
📝
frontend/src/lib/xray/inbound-link.ts(+9 -4)📝
frontend/src/pages/clients/ClientInfoModal.tsx(+4 -1)➕
frontend/src/pages/inbounds/qr/PostQuantumQrNotice.stories.tsx(+25 -0)➕
frontend/src/pages/inbounds/qr/PostQuantumQrNotice.tsx(+20 -0)📝
frontend/src/pages/inbounds/qr/QrPanel.tsx(+3 -0)📝
frontend/src/pages/sub/SubConfigsTab.tsx(+4 -1)📝
frontend/src/test/inbound-link.test.ts(+2 -0)➕
frontend/src/test/post-quantum-link.test.ts(+30 -0)➕
frontend/src/test/post-quantum-qr-notice.test.tsx(+44 -0)📝
internal/web/translation/ar-EG.json(+2 -0)📝
internal/web/translation/en-US.json(+2 -0)📝
internal/web/translation/es-ES.json(+2 -0)📝
internal/web/translation/fa-IR.json(+2 -0)📝
internal/web/translation/id-ID.json(+2 -0)📝
internal/web/translation/ja-JP.json(+2 -0)📝
internal/web/translation/pt-BR.json(+2 -0)📝
internal/web/translation/ru-RU.json(+2 -0)📝
internal/web/translation/tr-TR.json(+2 -0)📝
internal/web/translation/uk-UA.json(+2 -0)📝
internal/web/translation/vi-VN.json(+2 -0)...and 2 more files
📄 Description
Summary
Restore QR actions for ordinary VLESS REALITY links and explain the existing restriction when links contain post-quantum key payloads. Fixes #6730.
Why
Ordinary VLESS REALITY links lost their QR actions in v3.9.0 because the new
support-x25519mlkem768=truehint matched a substring check intended to suppress QR codes for large post-quantum key payloads.The change is split into two commits:
fix(qr): restore QR actions for ordinary REALITY links— parse the query and inspect only non-emptypqvandencryptionvalues. Keep the REALITY compatibility hint and the existing post-quantum QR restriction. Add detector regression tests, including the real generated REALITY link, unrelated algorithm names, and percent-encoded encryption.feat(qr): explain post-quantum QR restrictions— show an information action in the inbound/client QR panel, client information window, and public subscription page. Explain why post-quantum key payloads can produce oversized or dense QR codes and direct users to clipboard import. Include all 13 translations, component tests, and a Storybook example.The explanation opens on hover, focus, or click. Copying remains available.
Type of change
Areas affected
How was this tested?
genVlessLinkREALITY fixture was incorrectly classified, and the subscription QR action was absent.To reproduce: open a VLESS + TCP + REALITY client's QR/share window in Inbounds and expand the individual link. Its QR should be visible despite
support-x25519mlkem768=true. For a link with non-emptypqvor ML-KEMencryption, the information action explains the restriction while copying remains available.Screenshots / recordings
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.The Go build/test gate was not run for this frontend-only fix. The full browser test limitation is recorded above; no share-link output or API contract changes require documentation updates.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.