mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-11 15:46:35 -07:00
replace ServiceCom with objc class
This commit is contained in:
parent
a0db48571d
commit
b51d68a419
9 changed files with 323 additions and 234 deletions
|
@ -56,14 +56,14 @@ class NetworkInfoCell: NSTableCellView {
|
|||
}
|
||||
|
||||
func joinNetwork(nwid: String) {
|
||||
ServiceCom.sharedInstance.joinNetwork(nwid,
|
||||
ServiceCom.sharedInstance().joinNetwork(nwid,
|
||||
allowManaged: allowManaged.state == NSOnState,
|
||||
allowGlobal: allowGlobal.state == NSOnState,
|
||||
allowDefault: !Network.defaultRouteExists(parent.networkList) && (allowDefault.state == NSOnState))
|
||||
}
|
||||
|
||||
func leaveNetwork(nwid: String) {
|
||||
ServiceCom.sharedInstance.leaveNetwork(nwid)
|
||||
ServiceCom.sharedInstance().leaveNetwork(nwid)
|
||||
}
|
||||
|
||||
@IBAction func onAllowStatusChanged(sender: NSButton) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue