Fix hide vpn icon

* fix: hide vpn icon

* fix(i18n): the reference of deprecated config about
This commit is contained in:
skymkmk
2025-11-26 21:52:37 +08:00
committed by GitHub
parent 84d8cf1757
commit 085c075a48
4 changed files with 18 additions and 10 deletions
@@ -134,6 +134,14 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc
ipv6ExcludeRoutes.append(NEIPv6Route(destinationAddress: ipv6RoutePrefix.address(), networkPrefixLength: NSNumber(value: ipv6RoutePrefix.prefix())))
}
if await SharedPreferences.excludeDefaultRoute.get(), !ipv6Routes.isEmpty {
if !ipv6ExcludeRoutes.contains(where: { it in
it.destinationAddress == "::" && it.destinationNetworkPrefixLength == 127
}) {
ipv6ExcludeRoutes.append(NEIPv6Route(destinationAddress: "::", networkPrefixLength: 127))
}
}
ipv6Settings.includedRoutes = ipv6Routes
ipv6Settings.excludedRoutes = ipv6ExcludeRoutes
settings.ipv6Settings = ipv6Settings