Strip VPNManager initialization
This commit is contained in:
parent
1fd4fd4689
commit
b873e5e279
|
@ -104,23 +104,19 @@ class AppContext {
|
||||||
)
|
)
|
||||||
|
|
||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
vpnManager = VPNManager(
|
let strategy = VPNManager.MockStrategy()
|
||||||
appManager: appManager,
|
|
||||||
profileManager: profileManager,
|
|
||||||
providerManager: providerManager,
|
|
||||||
strategy: VPNManager.MockStrategy()
|
|
||||||
)
|
|
||||||
#else
|
#else
|
||||||
vpnManager = VPNManager(
|
let strategy = VPNManager.TunnelKitStrategy(
|
||||||
appManager: appManager,
|
appGroup: Constants.App.appGroupId,
|
||||||
profileManager: profileManager,
|
tunnelBundleIdentifier: Constants.App.tunnelBundleId
|
||||||
providerManager: providerManager,
|
|
||||||
strategy: VPNManager.TunnelKitStrategy(
|
|
||||||
appGroup: Constants.App.appGroupId,
|
|
||||||
tunnelBundleIdentifier: Constants.App.tunnelBundleId
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
#endif
|
#endif
|
||||||
|
vpnManager = VPNManager(
|
||||||
|
appManager: appManager,
|
||||||
|
profileManager: profileManager,
|
||||||
|
providerManager: providerManager,
|
||||||
|
strategy: strategy
|
||||||
|
)
|
||||||
|
|
||||||
// app
|
// app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue