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>
This commit is contained in:
parent
4bdfbb518e
commit
9afe230c10
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue