diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-16 09:53:39 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-16 09:53:39 -0800 |
commit | d2c0203dc98d26bea1f0167053a77e0fe02c150c (patch) | |
tree | 4a7dff7bfcf8c45f1d2c4d1c251876d8c2d29b8e | |
parent | afba19e01cc5db2030059485217e5fddadfa3ee1 (diff) | |
download | infinitytier-d2c0203dc98d26bea1f0167053a77e0fe02c150c.tar.gz infinitytier-d2c0203dc98d26bea1f0167053a77e0fe02c150c.zip |
Fix stupid inverted sense bug.
-rw-r--r-- | service/ControlPlane.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp index edc54bbd..5fbe01a6 100644 --- a/service/ControlPlane.cpp +++ b/service/ControlPlane.cpp @@ -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); } |