Commit ac359ff1 authored by Jose Blaya's avatar Jose Blaya

Refactor

parent af22fcbd
......@@ -81,6 +81,9 @@ public class IKEv2Profile: NetworkExtensionProfile {
return
}
// prevent reconnection
self.currentVPN.isOnDemandEnabled = false
self.currentVPN.saveToPreferences { (error) in
if let error = error {
callback?(error)
......
......@@ -95,6 +95,9 @@ public class IPSecProfile: NetworkExtensionProfile {
callback?(error)
return
}
// prevent reconnection
self.currentVPN.isOnDemandEnabled = false
self.currentVPN.saveToPreferences { (error) in
if let error = error {
......
......@@ -85,6 +85,9 @@ public class PIATunnelProfile: NetworkExtensionProfile {
return
}
// prevent reconnection
vpn.isOnDemandEnabled = false
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
......
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