aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-04-03 16:32:12 +0530
committerRoopesh Chander <roop@roopc.net>2019-04-03 19:04:12 +0530
commit9690365dd430000059780d8b40a82783ccffe1d3 (patch)
treed2e2c6b023357800305b2676e8cb87843e1294ed /WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
parentiOS: Log view: Make log text selectable (diff)
downloadwireguard-apple-9690365dd430000059780d8b40a82783ccffe1d3.tar.xz
wireguard-apple-9690365dd430000059780d8b40a82783ccffe1d3.zip
macOS: Better handling of tunnels created by another user
Previously, the tunnels just got deleted. Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift')
-rw-r--r--WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
index e3da61a1..856df1f3 100644
--- a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
+++ b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
@@ -49,9 +49,9 @@ extension NETunnelProviderProtocol {
Keychain.deleteReference(called: ref)
}
- func verifyConfigurationReference() -> Data? {
- guard let ref = passwordReference else { return nil }
- return Keychain.verifyReference(called: ref) ? ref : nil
+ func verifyConfigurationReference() -> Bool {
+ guard let ref = passwordReference else { return false }
+ return Keychain.verifyReference(called: ref)
}
@discardableResult