From 8bf24dba8a87b12167f0598d9a081d00d50bfb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 9 Nov 2023 15:48:20 +0800 Subject: [PATCH] Fix ipv6 custom route address --- Library/Network/ExtensionPlatformInterface.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Network/ExtensionPlatformInterface.swift b/Library/Network/ExtensionPlatformInterface.swift index 003e5ef..58b6881 100644 --- a/Library/Network/ExtensionPlatformInterface.swift +++ b/Library/Network/ExtensionPlatformInterface.swift @@ -73,7 +73,7 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc let inet6RouteAddressIterator = options.getInet6RouteAddress()! if inet6RouteAddressIterator.hasNext() { while inet6RouteAddressIterator.hasNext() { - let ipv6RoutePrefix = inet4RouteAddressIterator.next()! + let ipv6RoutePrefix = inet6RouteAddressIterator.next()! ipv6Routes.append(NEIPv6Route(destinationAddress: ipv6RoutePrefix.description, networkPrefixLength: NSNumber(value: ipv6RoutePrefix.prefix))) } } else {