Skip to content

feat: converter map hysteria2 port hopping and realm URI - #2947

Merged
wwqgtxx merged 2 commits into
MetaCubeX:Alphafrom
Medium1992:hy2-uri-obfs-gecko
Jul 7, 2026
Merged

feat: converter map hysteria2 port hopping and realm URI#2947
wwqgtxx merged 2 commits into
MetaCubeX:Alphafrom
Medium1992:hy2-uri-obfs-gecko

Conversation

@Medium1992

Copy link
Copy Markdown

Extends the hysteria2 mapping in ConvertsV2Ray for more stable parsing of subscriptions and retrieval of the full configuration:

fm= (Xray finalmask JSON) — dashboards (remnawave/3x-ui) include it in the URI as an xhttp extra. Breakdown: salamander→obfs, salamander+packetSize→gecko obfs (+obfs-min/max-packet-size), quicParams→up/down/ports/hop-interval/bbr-profile. Flat URI parameters remain the priority.
Port hopping—the official format is host:443,5000-6000 in the address (url.Parse used to reject this → previously, the entire subscription would fail) → ports.
hysteria2+realm://—a new official scheme from the hysteria docs → realm-opts; the realm mask in fm is also supported.
Purely additive: without fm/realm/multi-port, behavior remains the same.

@Medium1992
Medium1992 force-pushed the hy2-uri-obfs-gecko branch from d79025b to b33d2fb Compare July 7, 2026 21:26
@wwqgtxx

wwqgtxx commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Thank you for your submission. The rest of the commit looks good, but please remove the FM handling; we do not intend to support this non-standard extension.

@Medium1992 Medium1992 changed the title feat: converter map hysteria2 finalmask (fm), port hopping and realm URI feat: converter map hysteria2 port hopping and realm URI Jul 7, 2026
@Medium1992

Copy link
Copy Markdown
Author

Thank you for your submission. The rest of the commit looks good, but please remove the FM handling; we do not intend to support this non-standard extension.

fm has been deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants