parent
775e174967
commit
41af6d863e
|
@ -38,7 +38,7 @@ class MockTunnels {
|
|||
|
||||
let tunnelProviderManager = NETunnelProviderManager()
|
||||
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
|
||||
tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
|
||||
tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
|
||||
tunnelProviderManager.isEnabled = true
|
||||
|
||||
return tunnelProviderManager
|
||||
|
|
|
@ -67,7 +67,7 @@ class TunnelsManager {
|
|||
|
||||
let tunnelProviderManager = NETunnelProviderManager()
|
||||
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
|
||||
tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
|
||||
tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
|
||||
tunnelProviderManager.isEnabled = true
|
||||
|
||||
activateOnDemandSetting.apply(on: tunnelProviderManager)
|
||||
|
@ -124,7 +124,7 @@ class TunnelsManager {
|
|||
}
|
||||
|
||||
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
|
||||
tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
|
||||
tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
|
||||
tunnelProviderManager.isEnabled = true
|
||||
|
||||
let isActivatingOnDemand = !tunnelProviderManager.isOnDemandEnabled && activateOnDemandSetting.isActivateOnDemandEnabled
|
||||
|
|
Loading…
Reference in New Issue