Remove unnecessary addRoute

This commit is contained in:
dyhkwong 2024-05-08 10:44:43 +08:00 committed by 世界
parent c0ce4cc97d
commit 03d5304abb
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -83,8 +83,6 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
while (inet4RouteAddress.hasNext()) {
builder.addRoute(inet4RouteAddress.next().toIpPrefix())
}
} else {
builder.addRoute("0.0.0.0", 0)
}
val inet6RouteAddress = options.inet6RouteAddress
@ -92,8 +90,6 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
while (inet6RouteAddress.hasNext()) {
builder.addRoute(inet6RouteAddress.next().toIpPrefix())
}
} else {
builder.addRoute("::", 0)
}
val inet4RouteExcludeAddress = options.inet4RouteExcludeAddress