summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-16 09:53:39 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-16 09:53:39 -0800
commitd2c0203dc98d26bea1f0167053a77e0fe02c150c (patch)
tree4a7dff7bfcf8c45f1d2c4d1c251876d8c2d29b8e /service
parentafba19e01cc5db2030059485217e5fddadfa3ee1 (diff)
downloadinfinitytier-d2c0203dc98d26bea1f0167053a77e0fe02c150c.tar.gz
infinitytier-d2c0203dc98d26bea1f0167053a77e0fe02c150c.zip
Fix stupid inverted sense bug.
Diffstat (limited to 'service')
-rw-r--r--service/ControlPlane.cpp6
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);
}