Apply both IPv4 and IPv6 settings
Best choice to cope with "hybrid" environments.
This commit is contained in:
parent
ac3582c0fa
commit
da2727b003
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue