aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-22 15:20:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-22 15:20:57 +0100
commitd05b7357039d14f2c27dbe45bd6fe7be692f1e02 (patch)
treefa6e22829fd6d59549dda59b3f18fd7fa1c124af /WireGuard/WireGuard/Tunnel
parentmacOS: Tunnel edit: Handle deletion outside app (diff)
downloadwireguard-apple-d05b7357039d14f2c27dbe45bd6fe7be692f1e02.tar.xz
wireguard-apple-d05b7357039d14f2c27dbe45bd6fe7be692f1e02.zip
TunnelsManager: use new helper
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/Tunnel')
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 3efadb5a..9eadb4ee 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -294,7 +294,7 @@ class TunnelsManager {
guard let self = self,
let session = statusChangeNotification.object as? NETunnelProviderSession,
let tunnelProvider = session.manager as? NETunnelProviderManager,
- let tunnelConfiguration = TunnelContainer(tunnel: tunnelProvider).tunnelConfiguration,
+ let tunnelConfiguration = tunnelProvider.tunnelConfiguration,
let tunnel = self.tunnels.first(where: { $0.tunnelConfiguration == tunnelConfiguration }) else { return }
if tunnel.tunnelProvider != tunnelProvider {
tunnel.tunnelProvider = tunnelProvider