Fix Intelligent Selection not working (#4767)

This commit is contained in:
DHR60
2025-07-24 19:22:15 +08:00
committed by GitHub
parent 680832614b
commit 7f24ad534f

View File

@@ -887,6 +887,24 @@ object V2rayConfigManager {
)
)
}
if (v2rayConfig.routing.domainStrategy == "IPIfNonMatch") {
v2rayConfig.routing.rules.add(
RulesBean(
ip = arrayListOf("0.0.0.0/0", "::/0"),
balancerTag = "proxy-round",
type = "field"
)
)
} else {
v2rayConfig.routing.rules.add(
RulesBean(
network = "tcp,udp",
balancerTag = "proxy-round",
type = "field"
)
)
}
} catch (e: Exception) {
Log.e(AppConfig.TAG, "Failed to configure balance", e)
}