Support new hysteria2 stream settings#5435
Merged
2dust merged 1 commit into2dust:masterfrom Apr 1, 2026
Merged
Conversation
Contributor
|
怎么不把mporthopint也支持随机[端口跳跃间隔]?xray hy2和官方版hy2不都支持了? |
Owner
|
感谢 PR。 |
Contributor
There was a problem hiding this comment.
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) andudpHopsettings, plus optional salamander obfs mask. - Change when
finalMaskJSON 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.
V2rayNG/app/src/main/java/com/v2ray/ang/handler/V2rayConfigManager.kt
Outdated
Show resolved
Hide resolved
V2rayNG/app/src/main/java/com/v2ray/ang/handler/V2rayConfigManager.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.