[PR #6467] [MERGED] fix(link): preserve Shadowsocks TLS query params on import #6289

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6467
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei

Base: main ← Head: fix/ss-tls-link-query-roundtrip


📝 Commits (2)

  • 732c07f fix(link): preserve Shadowsocks TLS query params on import
  • f316dfc fix(link): drop extra blank line so oxfmt passes

📊 Changes

4 files changed (+121 additions, -34 deletions)

View changed files

📝 frontend/src/lib/xray/outbound-link-parser.ts (+12 -1)
📝 frontend/src/test/outbound-link-parser.test.ts (+26 -0)
📝 internal/util/link/outbound.go (+43 -33)
📝 internal/util/link/outbound_test.go (+40 -0)

📄 Description

Why

Generated Shadowsocks share links include Xray-native TLS query params (type, security, sni, alpn, fp), but both the Go and TS importers discarded the query, so round-trip import produced a plain SS outbound that cannot connect to TLS-enabled inbounds.

What

  • parseShadowsocks / parseShadowsocksLink now keep the query and apply it via buildStream / applyTransport / applySecurity (same pattern as Trojan/VLESS).
  • Tests cover TLS query survival on import; existing ?plugin= / ?type=tcp cases that only assert method/host/port still pass.

Fixes #6094


🔄 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/6467 **Author:** [@mrchatam](https://github.com/mrchatam) **Created:** 9/11/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/ss-tls-link-query-roundtrip` --- ### 📝 Commits (2) - [`732c07f`](https://github.com/MHSanaei/3x-ui/commit/732c07f1a9d4e0f134de990394d7dbd20cfb6d46) fix(link): preserve Shadowsocks TLS query params on import - [`f316dfc`](https://github.com/MHSanaei/3x-ui/commit/f316dfc3c1b5be55223d06fe3abb0f67580a0b71) fix(link): drop extra blank line so oxfmt passes ### 📊 Changes **4 files changed** (+121 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/lib/xray/outbound-link-parser.ts` (+12 -1) 📝 `frontend/src/test/outbound-link-parser.test.ts` (+26 -0) 📝 `internal/util/link/outbound.go` (+43 -33) 📝 `internal/util/link/outbound_test.go` (+40 -0) </details> ### 📄 Description ## Why Generated Shadowsocks share links include Xray-native TLS query params (`type`, `security`, `sni`, `alpn`, `fp`), but both the Go and TS importers discarded the query, so round-trip import produced a plain SS outbound that cannot connect to TLS-enabled inbounds. ## What - `parseShadowsocks` / `parseShadowsocksLink` now keep the query and apply it via `buildStream` / `applyTransport` / `applySecurity` (same pattern as Trojan/VLESS). - Tests cover TLS query survival on import; existing `?plugin=` / `?type=tcp` cases that only assert method/host/port still pass. Fixes #6094 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:42 +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#6289
No description provided.