summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 14:25:28 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 14:25:28 -0800
commit35c4e28f314881f3f6647deaaaf3e58d2ccb5417 (patch)
tree5c9a2a65766b088aecb1d56b9867e89b1afb305b /node/Cluster.cpp
parent47424df417dcbeec9e6415a85176299604b0fde2 (diff)
downloadinfinitytier-35c4e28f314881f3f6647deaaaf3e58d2ccb5417.tar.gz
infinitytier-35c4e28f314881f3f6647deaaaf3e58d2ccb5417.zip
Mark geo-redirected paths as suboptimal and do not report that we have a peer if all we have is one of these. Also a few other small fixes.
Diffstat (limited to 'node/Cluster.cpp')
-rw-r--r--node/Cluster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp
index 419948e2..a819372e 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -239,7 +239,7 @@ void Cluster::handleIncomingStateMessage(const void *msg,unsigned int len)
case CLUSTER_MESSAGE_WANT_PEER: {
const Address zeroTierAddress(dmsg.field(ptr,ZT_ADDRESS_LENGTH),ZT_ADDRESS_LENGTH); ptr += ZT_ADDRESS_LENGTH;
SharedPtr<Peer> peer(RR->topology->getPeerNoCache(zeroTierAddress));
- if ( (peer) && (peer->hasActiveDirectPath(RR->node->now())) ) {
+ if ( (peer) && (peer->hasClusterOptimalPath(RR->node->now())) ) {
Buffer<1024> buf;
peer->identity().serialize(buf);
Mutex::Lock _l2(_members[fromMemberId].lock);