mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-12 08:06: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
|
@ -244,10 +244,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
|
|||
let id = String(network.nwid, radix: 16)
|
||||
|
||||
if network.connected {
|
||||
ServiceCom.sharedInstance.leaveNetwork(id)
|
||||
ServiceCom.sharedInstance().leaveNetwork(id)
|
||||
}
|
||||
else {
|
||||
ServiceCom.sharedInstance.joinNetwork(id)
|
||||
ServiceCom.sharedInstance().joinNetwork(id, allowManaged: true, allowGlobal: false, allowDefault: false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue