mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-14 00:53:21 -07:00
Pipe member capabilites to network json
This commit is contained in:
parent
f187a6c34f
commit
c36d8213f8
3 changed files with 22 additions and 0 deletions
|
@ -554,6 +554,16 @@ static void _networkToJson(nlohmann::json &nj,NetworkState &ns)
|
|||
}
|
||||
nj["tags"] = tags;
|
||||
|
||||
nlohmann::json caps = nlohmann::json::array();
|
||||
for(unsigned int i=0;i<ns.config().capabilitiesCount;++i) {
|
||||
if (ns.config().capabilities[i]) {
|
||||
caps[i] = ns.config().capabilities[i];
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
nj["capabilities"] = caps;
|
||||
|
||||
|
||||
nlohmann::json aa = nlohmann::json::array();
|
||||
for(unsigned int i=0;i<ns.config().assignedAddressCount;++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue