[PR #6048] [MERGED] fix(sub): omit non-standard fm param from Hysteria2 URI #6061

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

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

  • 3dbc0bc fix(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

  • Stop serializing the internal finalmask object as the non-standard fm query param in Hysteria2 subscription URIs (genHysteriaLink).
  • Keep standard obfs / obfs-password for salamander obfuscation (same approach as the Clash generator).

Why

fm is 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 TestGenHysteriaLinkOmitsFinalMaskQueryParam
  • Manual: Hysteria2 inbound with salamander → raw/base64 sub link has obfs/obfs-password, no fm=
  • Mihomo proxy-provider refresh succeeds

Fixes #5982


🔄 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/6048 **Author:** [@H-TTTTT](https://github.com/H-TTTTT) **Created:** 7/20/2026 **Status:** ✅ Merged **Merged:** 7/21/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/hy2-fm-param` --- ### 📝 Commits (1) - [`3dbc0bc`](https://github.com/MHSanaei/3x-ui/commit/3dbc0bc1b2cb9d1869d45f0133ac62b081dc9c12) fix(sub): omit non-standard fm param from Hysteria2 URI ### 📊 Changes **2 files changed** (+32 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `internal/sub/service.go` (+3 -4) 📝 `internal/sub/service_test.go` (+29 -0) </details> ### 📄 Description ## Summary - Stop serializing the internal `finalmask` object as the non-standard `fm` query param in Hysteria2 subscription URIs (`genHysteriaLink`). - Keep standard `obfs` / `obfs-password` for salamander obfuscation (same approach as the Clash generator). ## Why `fm` is 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 - [x] `go test ./internal/sub/ -run TestGenHysteriaLinkOmitsFinalMaskQueryParam` - [ ] Manual: Hysteria2 inbound with salamander → raw/base64 sub link has `obfs`/`obfs-password`, no `fm=` - [ ] Mihomo proxy-provider refresh succeeds Fixes #5982 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:07 +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#6061
No description provided.