Commit 02e10607 authored by Mygod's avatar Mygod

Sometimes Android manages to miss the most obvious

parent 42ad20fe
...@@ -177,9 +177,12 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface { ...@@ -177,9 +177,12 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
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 -> resources.getStringArray(R.array.bypass_private_route).forEach { else -> {
val subnet = Subnet.fromString(it)!! resources.getStringArray(R.array.bypass_private_route).forEach {
builder.addRoute(subnet.address.hostAddress, subnet.prefixSize) val subnet = Subnet.fromString(it)!!
builder.addRoute(subnet.address.hostAddress, subnet.prefixSize)
}
builder.addRoute(PRIVATE_VLAN4_ROUTER, 32)
} }
} }
......
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