Commit 6d4151da authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch...

Merge branch '75-piax-tunnel-should-reconnects-after-change-the-kill-switch-option' into 'release/2.0.0'

Resolve "PIAX. Tunnel should reconnects after change the Kill Switch option"

See merge request ios/client-library-apple!131
parents 047a132c 1d400f8e
......@@ -267,6 +267,9 @@ extension Client.Preferences {
if (vpnType != target.vpnType) {
queue.append(VPNActionDisconnectAndReinstall())
}
if (isPersistentConnection != target.isPersistentConnection) {
queue.append(VPNActionReinstall())
}
if let configuration = vpnCustomConfigurations[vpnType],
let targetConfiguration = target.activeVPNCustomConfiguration,
!configuration.isEqual(to: targetConfiguration) {
......@@ -298,6 +301,9 @@ extension Client.Preferences {
if (mace != target.mace) {
return true
}
if (isPersistentConnection != target.isPersistentConnection) {
return true
}
if let configuration = vpnCustomConfigurations[vpnType],
let targetConfiguration = target.activeVPNCustomConfiguration,
!configuration.isEqual(to: targetConfiguration) {
......
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