mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6048] [MERGED] fix(sub): omit non-standard fm param from Hysteria2 URI #6061
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#6061
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/6048
Author: @H-TTTTT
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @MHSanaei
Base:
main← Head:fix/hy2-fm-param📝 Commits (1)
3dbc0bcfix(sub): omit non-standard fm param from Hysteria2 URI📊 Changes
2 files changed (+32 additions, -4 deletions)
View changed files
📝
internal/sub/service.go(+3 -4)📝
internal/sub/service_test.go(+29 -0)📄 Description
Summary
finalmaskobject as the non-standardfmquery param in Hysteria2 subscription URIs (genHysteriaLink).obfs/obfs-passwordfor salamander obfuscation (same approach as the Clash generator).Why
fmis a v2rayN-specific extension, not part of the Hysteria2 URI scheme. With salamander enabled, mihomo (and other strict clients) reject the link during proxy-provider updates.Test plan
go test ./internal/sub/ -run TestGenHysteriaLinkOmitsFinalMaskQueryParamobfs/obfs-password, nofm=Fixes #5982
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.