aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-22 15:15:22 +0530
committerRoopesh Chander <roop@roopc.net>2019-03-22 15:15:26 +0530
commit9afe230c106a43e9870b5189b70608b8fcd38aab (patch)
tree893d190ca71e9d8d355948fab646833afc46b154
parentXcode: iOS: Remove armv7 as 'Required device capabilities' (diff)
downloadwireguard-apple-9afe230c106a43e9870b5189b70608b8fcd38aab.tar.xz
wireguard-apple-9afe230c106a43e9870b5189b70608b8fcd38aab.zip
macOS: On Add new, Exclude Private IPs should remain hidden
because there aren't any peers in the bootstrapped config. Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
index 13433c0..e643ffc 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
@@ -117,6 +117,8 @@ class TunnelEditViewController: NSViewController {
let bootstrappingText = "[Interface]\nPrivateKey = \(privateKey.base64Key() ?? "")\n"
publicKeyRow.value = publicKey.base64Key() ?? ""
textView.string = bootstrappingText
+ updateExcludePrivateIPsVisibility(singlePeerAllowedIPs: nil)
+ dnsServersAddedToAllowedIPs = nil
}
privateKeyObservationToken = textView.observe(\.privateKeyString) { [weak publicKeyRow] textView, _ in
if let privateKeyString = textView.privateKeyString,