Commit a05aa568 authored by Jose Blaya's avatar Jose Blaya
Browse files

Need to save twice the vpn configuration https://forums.developer.apple.com/thread/25928

parent e996f546
......@@ -439,10 +439,10 @@ extension Client.Preferences {
queue.append(VPNActionDisconnectAndReinstall())
}
if (ikeV2IntegrityAlgorithm != target.ikeV2IntegrityAlgorithm) {
queue.append(VPNActionReinstall())
queue.append(VPNActionDisconnectAndReinstall())
}
if (ikeV2EncryptionAlgorithm != target.ikeV2EncryptionAlgorithm) {
queue.append(VPNActionReinstall())
queue.append(VPNActionDisconnectAndReinstall())
}
if let configuration = vpnCustomConfigurations[vpnType],
let targetConfiguration = target.activeVPNCustomConfiguration,
......
......@@ -91,8 +91,14 @@ extension NetworkExtensionProfile {
callback?(error)
return
}
vpn.loadFromPreferences { (error) in
callback?(nil)
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
return
}
vpn.loadFromPreferences { (error) in
callback?(nil)
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment