Restore generic VPN in TunnelKitVPNManagerStrategy
MockVPN was not compiling.
Partially revert e17224e61e
This commit is contained in:
parent
26c34638cb
commit
e7a98acf9c
|
@ -32,7 +32,7 @@ import TunnelKitOpenVPNCore
|
|||
import PassepartoutCore
|
||||
import PassepartoutUtils
|
||||
|
||||
public class TunnelKitVPNManagerStrategy: VPNManagerStrategy {
|
||||
public class TunnelKitVPNManagerStrategy<VPNType: VPN>: VPNManagerStrategy where VPNType.Configuration == NetworkExtensionConfiguration, VPNType.Extra == NetworkExtensionExtra {
|
||||
private struct AtomicState: Equatable {
|
||||
let isEnabled: Bool
|
||||
|
||||
|
@ -52,7 +52,7 @@ public class TunnelKitVPNManagerStrategy: VPNManagerStrategy {
|
|||
|
||||
private let defaults: UserDefaults
|
||||
|
||||
private let vpn: NetworkExtensionVPN
|
||||
private let vpn: VPNType
|
||||
|
||||
private let dataCountInterval: TimeInterval
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class TunnelKitVPNManagerStrategy: VPNManagerStrategy {
|
|||
public init(
|
||||
appGroup: String,
|
||||
tunnelBundleIdentifier: @escaping (VPNProtocolType) -> String,
|
||||
vpn: NetworkExtensionVPN,
|
||||
vpn: VPNType,
|
||||
dataCountInterval: TimeInterval = 3.0
|
||||
) {
|
||||
self.appGroup = appGroup
|
||||
|
|
Loading…
Reference in New Issue