mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Fix stupid inverted sense bug.
This commit is contained in:
parent
afba19e01c
commit
d2c0203dc9
1 changed files with 3 additions and 3 deletions
|
@ -127,9 +127,9 @@ static void _peerToJson(nlohmann::json &pj,const ZT_Peer *peer)
|
|||
j["address"] = reinterpret_cast<const InetAddress *>(&(peer->paths[i].address))->toString();
|
||||
j["lastSend"] = peer->paths[i].lastSend;
|
||||
j["lastReceive"] = peer->paths[i].lastReceive;
|
||||
j["active"] = (bool)(peer->paths[i].expired != 0);
|
||||
j["expired"] = (bool)(peer->paths[i].expired == 0);
|
||||
j["preferred"] = (bool)(peer->paths[i].preferred == 0);
|
||||
j["active"] = (bool)(peer->paths[i].expired == 0);
|
||||
j["expired"] = (bool)(peer->paths[i].expired != 0);
|
||||
j["preferred"] = (bool)(peer->paths[i].preferred != 0);
|
||||
j["trustedPathId"] = peer->paths[i].trustedPathId;
|
||||
pa.push_back(j);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue