Commit 1d400f8e authored by Jose Blaya's avatar Jose Blaya
Browse files

- Reconnects after change the 'KillSwitch' option

parent 047a132c
......@@ -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