macOS: On Add new, Exclude Private IPs should remain hidden

because there aren't any peers in the bootstrapped config.
This commit is contained in:
Roopesh Chander 2019-03-22 15:15:22 +05:30
parent 2abe092818
commit 7754f81dca
1 changed files with 2 additions and 0 deletions

View 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,