aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-04-06 00:26:06 +0530
committerRoopesh Chander <roop@roopc.net>2019-04-06 00:26:06 +0530
commit8bbf4e084a97eb90ffae52d9ec2fe50f7190f06a (patch)
tree4178ccf22c190ce18f2a6fb28f9717304f26a44c
parentmacOS: Tunnels list: Show the confirmation alert till removal completes (diff)
downloadwireguard-apple-8bbf4e084a97eb90ffae52d9ec2fe50f7190f06a.tar.xz
wireguard-apple-8bbf4e084a97eb90ffae52d9ec2fe50f7190f06a.zip
TunnelsManager: When setting a config, also set isAvailable cache
-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 b1def4c..b0bf0cb 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -607,6 +607,7 @@ extension NETunnelProviderManager {
protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration, previouslyFrom: protocolConfiguration)
localizedDescription = tunnelConfiguration.name
objc_setAssociatedObject(self, &NETunnelProviderManager.cachedConfigKey, tunnelConfiguration, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
+ objc_setAssociatedObject(self, &NETunnelProviderManager.cachedIsConfigAvailableInKeychainKey, NSNumber(value: true), objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
}
func isEquivalentTo(_ tunnel: TunnelContainer) -> Bool {