mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6467] [MERGED] fix(link): preserve Shadowsocks TLS query params on import #6289
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#6289
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/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)
732c07ffix(link): preserve Shadowsocks TLS query params on importf316dfcfix(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/parseShadowsocksLinknow keep the query and apply it viabuildStream/applyTransport/applySecurity(same pattern as Trojan/VLESS).?plugin=/?type=tcpcases 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.