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:
parent
2abe092818
commit
7754f81dca
|
@ -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