Fix HYSTERIA2 string

This commit is contained in:
2dust
2026-01-15 14:30:10 +08:00
parent a2a4ea79a9
commit 609e688d87
6 changed files with 14 additions and 124 deletions
@@ -142,6 +142,7 @@ object AngConfigManager {
EConfigType.WIREGUARD -> WireguardFmt.toUri(config)
EConfigType.HYSTERIA2 -> Hysteria2Fmt.toUri(config)
EConfigType.POLICYGROUP -> ""
else -> {}
}
} catch (e: Exception) {
Log.e(AppConfig.TAG, "Failed to share config for GUID: $guid", e)
@@ -1003,6 +1003,7 @@ object V2rayConfigManager {
EConfigType.HYSTERIA2 -> Hysteria2Fmt.toOutbound(profileItem)
EConfigType.HTTP -> HttpFmt.toOutbound(profileItem)
EConfigType.POLICYGROUP -> null
else -> null
}
}
@@ -1051,9 +1052,10 @@ object V2rayConfigManager {
)
)
EConfigType.HYSTERIA,
EConfigType.HYSTERIA2 ->
return OutboundBean(
protocol = "hysteria",
protocol = EConfigType.HYSTERIA.name.lowercase(),
settings = OutSettingsBean(
servers = null
),