diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt index 44e244c..fa5fbe0 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt @@ -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