aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-22 15:35:14 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-22 15:35:14 +0100
commit704de3b26cd4e1c3022fcd3f7c058de10eeb7e6d (patch)
treee14f2f9da9fb9a8e0abf2bad8daa89645ac8c363 /WireGuard/WireGuard/Tunnel/TunnelsManager.swift
parentTunnelsManager: use new helper (diff)
downloadwireguard-apple-704de3b26cd4e1c3022fcd3f7c058de10eeb7e6d.tar.xz
wireguard-apple-704de3b26cd4e1c3022fcd3f7c058de10eeb7e6d.zip
TunnelsManager: refresh status after replacing insides
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/Tunnel/TunnelsManager.swift')
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 9eadb4ee..28b69692 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -73,6 +73,7 @@ class TunnelsManager {
for loadedTunnelProvider in loadedTunnelProviders {
if let matchingTunnel = self.tunnels.first(where: { $0.tunnelConfiguration == loadedTunnelProvider.tunnelConfiguration }) {
matchingTunnel.tunnelProvider = loadedTunnelProvider
+ matchingTunnel.refreshStatus()
} else {
// Tunnel was added outside the app
let tunnel = TunnelContainer(tunnel: loadedTunnelProvider)