Add geosite:private and make it work (#3418)

* Add geosite:private and make it work

* Update AppConfig.kt

---------

Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
This commit is contained in:
mayampi01
2024-08-04 10:15:55 +08:00
committed by GitHub
parent be30de6728
commit 253bd793d7

View File

@@ -222,7 +222,7 @@ object V2rayConfigUtil {
when (routingMode) {
ERoutingMode.BYPASS_LAN.value -> {
routingGeo("ip", "private", TAG_DIRECT, v2rayConfig)
routingGeo("", "private", TAG_DIRECT, v2rayConfig)
}
ERoutingMode.BYPASS_MAINLAND.value -> {
@@ -231,7 +231,7 @@ object V2rayConfigUtil {
}
ERoutingMode.BYPASS_LAN_MAINLAND.value -> {
routingGeo("ip", "private", TAG_DIRECT, v2rayConfig)
routingGeo("", "private", TAG_DIRECT, v2rayConfig)
routingGeo("", "cn", TAG_DIRECT, v2rayConfig)
v2rayConfig.routing.rules.add(0, googleapisRoute)
}