[PR #4621] [MERGED] Fix REALITY share links missing SNI #5726

Closed
opened 2026-11-02 04:03:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • de2eb92 Fix REALITY share links missing SNI
  • d41df71 Update 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:

  1. reality.settings.serverName
  2. reality.serverNames[0]
  3. reality.target host as fallback

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.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4621 **Author:** [@pooyaww](https://github.com/pooyaww) **Created:** 5/28/2026 **Status:** ✅ Merged **Merged:** 5/28/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix-reality-share-link-sni` --- ### 📝 Commits (2) - [`de2eb92`](https://github.com/MHSanaei/3x-ui/commit/de2eb9236ef565e1a87d9649968fdb07e7c2e8cd) Fix REALITY share links missing SNI - [`d41df71`](https://github.com/MHSanaei/3x-ui/commit/d41df71a841df2049f6e0c74dc74fa5d707abc41) Update REALITY link snapshots ### 📊 Changes **2 files changed** (+18 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/lib/xray/inbound-link.ts` (+16 -7) 📝 `frontend/src/test/__snapshots__/inbound-link.test.ts.snap` (+2 -2) </details> ### 📄 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: 1. reality.settings.serverName 2. reality.serverNames[0] 3. reality.target host as fallback The change is applied both in genVlessLink() and the shared writeRealityParams() helper. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5726
No description provided.