mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
add UI elements in network details for allowDefault, allowGlobal, allowManaged
This commit is contained in:
parent
7e17a2072c
commit
d57e343245
4 changed files with 222 additions and 139 deletions
|
@ -260,3 +260,13 @@ class Network: NSObject, NSCoding {
|
|||
aCoder.encodeBool(self.allowDefault, forKey: PropertyKeys.allowDefaultKey)
|
||||
}
|
||||
}
|
||||
|
||||
func defaultRouteExists(netList: [Network]) -> Bool {
|
||||
for net in netList {
|
||||
if net.allowDefault {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue