Fix hide vpn icon
* fix: hide vpn icon * fix(i18n): the reference of deprecated config about
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user