mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #7034] [Bug]: Adding security settings issues in inbound, generating x25519 (native), and the client won't generate a VLESS protocol QR code. #6599
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#6599
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?
Originally created by @Heiyukeji on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7034
Describe the bug
In the 'Add Inbound' section of the 3xui panel, when Agreement generates x25519 (native), the client won't generate a VLESS protocol QR code—there's only the subscription information and VLESS link, but no VLESS QR code. I'm not exactly sure where in your code this happens, so please check it yourself.
How to reproduce the problem
In the 'Add Inbound' section of the 3xui panel, if the Agreement generates x25519 (native), the client's VLESS protocol QR code will disappear, leaving only the VLESS import link.
Expected behavior
Normally there should be a QR code. As long as I clear the x25519 (native) generated in the Agreement, the QR code will appear.
Actual behavior
If x25519 (native) is generated in Agreement, the VLESS protocol QR code in the client will disappear. If it's not generated, the QR code will appear again.
Relevant logs
Screenshots
3x-ui version
all
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu22.04全版本
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@DoctorGuidance commented on GitHub (Nov 2, 2026):
Hi @Heiyukeji, I traced the issue and submitted PR #7049 to resolve it.
Root cause:
The frontend QR modal gates QR code display using
isPostQuantumLink(link)to avoid generating unreadable QR grids for massive post-quantum key payloads (like ML-KEM-768 with ~1580-byte keys or ML-DSA-65 with ~2600-byte keys). However, standard X25519 VLESS links are only ~300 bytes and easily fit inside standard QR Level L capacity (up to 2953 bytes).In PR #7049:
link.length <= 1000is always safe for standard QR codes).pqvpayloads (length > 300) so boolean flags or short query params do not cause false positives.native,xorpub,random).Your VLESS QR code will now render normally alongside the subscription and copy link.