]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: On Add new, Exclude Private IPs should remain hidden
authorRoopesh Chander <roop@roopc.net>
Fri, 22 Mar 2019 09:45:22 +0000 (15:15 +0530)
committerRoopesh Chander <roop@roopc.net>
Fri, 22 Mar 2019 09:45:26 +0000 (15:15 +0530)
because there aren't any peers in the bootstrapped config.

Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift

index 13433c02d65cbd3e9baf3f923378802eadc05da4..e643ffc18d7bcba826ad9ea87b08417fdb784015 100644 (file)
@@ -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,