mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Merge OneService changes from master.
This commit is contained in:
commit
3e78785dea
1 changed files with 2 additions and 0 deletions
|
@ -510,6 +510,7 @@ static void _peerToJson(nlohmann::json &pj,const ZT_Peer *peer)
|
|||
pj["isBonded"] = peer->isBonded;
|
||||
if (peer->isBonded) {
|
||||
pj["bondingPolicy"] = peer->bondingPolicy;
|
||||
pj["isHealthy"] = peer->isHealthy;
|
||||
pj["numAliveLinks"] = peer->numAliveLinks;
|
||||
pj["numTotalLinks"] = peer->numTotalLinks;
|
||||
}
|
||||
|
@ -541,6 +542,7 @@ static void _bondToJson(nlohmann::json &pj, SharedPtr<Bond> &bond)
|
|||
return;
|
||||
}
|
||||
|
||||
pj["isHealthy"] = bond->isHealthy();
|
||||
pj["numAliveLinks"] = bond->getNumAliveLinks();
|
||||
pj["numTotalLinks"] = bond->getNumTotalLinks();
|
||||
pj["failoverInterval"] = bond->getFailoverInterval();
|
||||
|
|
Loading…
Add table
Reference in a new issue