Skip to content

Support new hysteria2 stream settings#5435

Merged
2dust merged 1 commit into2dust:masterfrom
DHR60:fix1
Apr 1, 2026
Merged

Support new hysteria2 stream settings#5435
2dust merged 1 commit into2dust:masterfrom
DHR60:fix1

Conversation

@DHR60
Copy link
Copy Markdown
Contributor

@DHR60 DHR60 commented Apr 1, 2026

No description provided.

@fuilloi
Copy link
Copy Markdown
Contributor

fuilloi commented Apr 1, 2026

怎么不把mporthopint也支持随机[端口跳跃间隔]?xray hy2和官方版hy2不都支持了?

@2dust
Copy link
Copy Markdown
Owner

2dust commented Apr 1, 2026

感谢 PR。
让 ai review 下,就直接合并了。

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for updated Hysteria2 stream/transport settings by moving bandwidth and UDP hop configuration into finalmask.quicParams (and finalmask.udp for salamander obfs), and updates URI formatting to better handle interval inputs.

Changes:

  • Generate Hysteria2 finalmask.quicParams (brutal up/down, congestion) and udpHop settings, plus optional salamander obfs mask.
  • Change when finalMask JSON overrides computed transport settings (now applied after the per-network defaults).
  • Update Hysteria2 URI export to handle interval ranges by emitting only the lower bound.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
V2rayNG/app/src/main/java/com/v2ray/ang/handler/V2rayConfigManager.kt Builds Hysteria2 QUIC-related settings under finalmask and changes finalMask override ordering.
V2rayNG/app/src/main/java/com/v2ray/ang/fmt/Hysteria2Fmt.kt Adjusts URI export for mportHopInt when the interval contains a range.
V2rayNG/app/src/main/java/com/v2ray/ang/dto/V2rayConfig.kt Updates DTOs to reflect the new Hysteria2/finalmask schema (removes old hysteria fields; adjusts QUIC param types).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@2dust 2dust merged commit b61cad5 into 2dust:master Apr 1, 2026
1 check passed
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.

4 participants