aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-12-21 21:59:43 -0600
committerEric Kuck <eric@bluelinelabs.com>2018-12-21 21:59:43 -0600
commit9098cd1161be1c6e7175fdf48128faed6a4438f5 (patch)
tree6be9055a0c05620ee7be3bbd0e875b9a0560a715 /WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
parentLocalize remaining strings in network extension (diff)
downloadwireguard-apple-9098cd1161be1c6e7175fdf48128faed6a4438f5.tar.xz
wireguard-apple-9098cd1161be1c6e7175fdf48128faed6a4438f5.zip
Removing a tunnel from iOS's settings is now immediately reflected in app
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift4
1 files changed, 0 insertions, 4 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
index bc4b542a..fd6bb9b9 100644
--- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
+++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
@@ -13,10 +13,6 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
private var lastFirstInterface: NWInterface?
private var packetTunnelSettingsGenerator: PacketTunnelSettingsGenerator?
- deinit {
- networkMonitor?.cancel()
- }
-
override func startTunnel(options: [String: NSObject]?, completionHandler startTunnelCompletionHandler: @escaping (Error?) -> Void) {
let activationAttemptId = options?["activationAttemptId"] as? String
let errorNotifier = ErrorNotifier(activationAttemptId: activationAttemptId)