Commit e9e5c1c0 authored by Max Lv's avatar Max Lv

Fix #2361

parent 402c16e8
......@@ -183,6 +183,9 @@ 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 -> {
......@@ -193,6 +196,7 @@ 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