mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #4621] [MERGED] Fix REALITY share links missing SNI #5726
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#5726
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/4621
Author: @pooyaww
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @MHSanaei
Base:
main← Head:fix-reality-share-link-sni📝 Commits (2)
de2eb92Fix REALITY share links missing SNId41df71Update REALITY link snapshots📊 Changes
2 files changed (+18 additions, -9 deletions)
View changed files
📝
frontend/src/lib/xray/inbound-link.ts(+16 -7)📝
frontend/src/test/__snapshots__/inbound-link.test.ts.snap(+2 -2)📄 Description
Fixes REALITY share-link generation by adding the missing sni query parameter.
The frontend currently exports REALITY links with pbk, fp, sid, spx, and pqv, but omits sni even when realitySettings.settings.serverName or realitySettings.serverNames is configured. This causes exported VLESS/Trojan REALITY links to fail in clients that require the SNI in the URL.
This patch adds sni from:
The change is applied both in genVlessLink() and the shared writeRealityParams() helper.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.