Add version field to Hysteria2 config

This commit is contained in:
2dust
2026-01-18 15:22:33 +08:00
parent 11c3dd97c3
commit dd11569969
2 changed files with 2 additions and 0 deletions
@@ -88,6 +88,7 @@ data class V2rayConfig(
var reserved: List<Int>? = null,
var mtu: Int? = null,
var obfsPassword: String? = null,
var version: Int? = null,
) {
data class VnextBean(
@@ -96,6 +96,7 @@ object Hysteria2Fmt : FmtBase() {
outboundBean.settings?.let { server ->
server.address = getServerAddress(profileItem)
server.port = profileItem.serverPort.orEmpty().toInt()
server.version = 2
}
val sni = outboundBean.streamSettings?.let {