Commit 25718539 authored by Mygod's avatar Mygod

Revert "Fix #2361"

This reverts commit e9e5c1c0.

Further investigations towards this issue are needed.
parent 024ab83f
...@@ -178,9 +178,6 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface { ...@@ -178,9 +178,6 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
if (!profile.bypass) builder.addAllowedApplication(me) if (!profile.bypass) builder.addAllowedApplication(me)
} }
if (Build.VERSION.SDK_INT == 29) {
builder.addRoute("0.0.0.0", 0)
} else {
when (profile.route) { when (profile.route) {
Acl.ALL, Acl.BYPASS_CHN, Acl.CUSTOM_RULES -> builder.addRoute("0.0.0.0", 0) Acl.ALL, Acl.BYPASS_CHN, Acl.CUSTOM_RULES -> builder.addRoute("0.0.0.0", 0)
else -> { else -> {
...@@ -191,7 +188,6 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface { ...@@ -191,7 +188,6 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
builder.addRoute(PRIVATE_VLAN4_ROUTER, 32) builder.addRoute(PRIVATE_VLAN4_ROUTER, 32)
} }
} }
}
metered = profile.metered metered = profile.metered
active = true // possible race condition here? active = true // possible race condition here?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment