mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-14 00:53:21 -07:00
add allowGlobal, allowDefault, allowManaged options to joining a network
This commit is contained in:
parent
5da4fd2aef
commit
9c94d6527a
3 changed files with 67 additions and 22 deletions
|
@ -30,6 +30,10 @@ class JoinNetworkViewController: NSViewController, NSComboBoxDelegate, NSComboBo
|
|||
@IBOutlet var network: NSComboBox!
|
||||
@IBOutlet var joinButton: NSButton!
|
||||
|
||||
@IBOutlet var allowManagedCheckBox: NSButton!
|
||||
@IBOutlet var allowGlobalCheckBox: NSButton!
|
||||
@IBOutlet var allowDefaultCheckBox:NSButton!
|
||||
|
||||
var values: [String] = [String]()
|
||||
|
||||
override func viewDidLoad() {
|
||||
|
@ -61,8 +65,10 @@ class JoinNetworkViewController: NSViewController, NSComboBoxDelegate, NSComboBo
|
|||
@IBAction func onJoinClicked(sender: AnyObject?) {
|
||||
let networkString = network.stringValue
|
||||
|
||||
ServiceCom.joinNetwork(networkString)
|
||||
|
||||
ServiceCom.joinNetwork(networkString,
|
||||
allowManaged: allowManagedCheckBox.state == NSOnState,
|
||||
allowGlobal: allowGlobalCheckBox.state == NSOnState,
|
||||
allowDefault: allowDefaultCheckBox.state == NSOnState)
|
||||
network.stringValue = ""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue