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 {
if (!profile.bypass) builder.addAllowedApplication(me)
}
if (Build.VERSION.SDK_INT == 29) {
builder.addRoute("0.0.0.0", 0)
} else {
when (profile.route) {
Acl.ALL, Acl.BYPASS_CHN, Acl.CUSTOM_RULES -> builder.addRoute("0.0.0.0", 0)
else -> {
......@@ -191,7 +188,6 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
builder.addRoute(PRIVATE_VLAN4_ROUTER, 32)
}
}
}
metered = profile.metered
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