Apply both IPv4 and IPv6 settings

Best choice to cope with "hybrid" environments.
This commit is contained in:
Davide De Rosa 2018-09-15 19:42:43 +02:00
parent ac3582c0fa
commit da2727b003
1 changed files with 3 additions and 6 deletions

View File

@ -551,11 +551,8 @@ extension TunnelKitProvider: SessionProxyDelegate {
let dnsSettings = NEDNSSettings(servers: reply.dnsServers)
let newSettings = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: remoteAddress)
if let _ = ipv6Settings {
newSettings.ipv6Settings = ipv6Settings
} else {
newSettings.ipv4Settings = ipv4Settings
}
newSettings.ipv4Settings = ipv4Settings
newSettings.ipv6Settings = ipv6Settings
newSettings.dnsSettings = dnsSettings
setTunnelNetworkSettings(newSettings, completionHandler: completionHandler)