aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-12-21 22:41:54 -0600
committerEric Kuck <eric@bluelinelabs.com>2018-12-21 22:57:17 -0600
commit0bec5b04b0b76fef7eeafc6609ffa05c61117df8 (patch)
tree25792a2b8448d529867fd4a8f9370dddf258177a /WireGuard/WireGuard/Tunnel
parentClean up trailing whitespace (diff)
downloadwireguard-apple-0bec5b04b0b76fef7eeafc6609ffa05c61117df8.tar.xz
wireguard-apple-0bec5b04b0b76fef7eeafc6609ffa05c61117df8.zip
All models now Equatable
Signed-off-by: Eric Kuck <eric@bluelinelabs.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 86f57d94..8b5311da 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -64,7 +64,7 @@ class TunnelsManager {
}
let newTunnels = managers.map { TunnelContainer(tunnel: $0) }.sorted { $0.name < $1.name }
- let hasChanges = self.tunnels.map { $0.name } != newTunnels.map { $0.name }
+ let hasChanges = self.tunnels.map { $0.tunnelConfiguration } != newTunnels.map { $0.tunnelConfiguration }
if hasChanges {
self.tunnels = newTunnels
completionHandler(true)