Fix hide vpn icon

* fix: hide vpn icon

* fix(i18n): the reference of deprecated config about
This commit is contained in:
skymkmk authored and GitHub committed 2025-11-26 21:52:37 +08:00
1 parent 84d8cf1757
commit 085c075a48
4 files changed
+18 -10

No files matched your search

@@ -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