mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4040] [Bug] Reality subscription uses empty shortId when first shortIds element is empty string #2739
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#2739
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 @juner922 on GitHub (Apr 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4040
Describe the bug
When creating a VLESS Reality inbound, the default shortIds array contains an empty string as the first element: ["", "0123456789abcdef"].
The subscription link generator (genVlessLink in subService.go) picks the first shortId from the array, resulting in sid= (empty) in the generated vless:// link.
While an empty shortId is technically valid in Xray-core (it means no shortId verification), many popular clients like Mihomo/Clash.Meta fail to establish connections with an empty sid parameter.
How to reproduce
Expected behavior
The subscription generator should either:
3x-ui Version
2.8.11
Xray-core Version
v25.12.8