From d05b7357039d14f2c27dbe45bd6fe7be692f1e02 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Jan 2019 15:20:50 +0100 Subject: [PATCH] TunnelsManager: use new helper Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/Tunnel/TunnelsManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift index 3efadb5..9eadb4e 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