summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-06 15:06:07 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-06 15:06:07 -0700
commitf2d2df2b112c8a644b718abc521af296a83b5337 (patch)
treee0ba48598b92c422b48585a1c6eed385875195da /node/Cluster.cpp
parent48a374c82c89b69a71d1922c4396265394e9045f (diff)
downloadinfinitytier-f2d2df2b112c8a644b718abc521af296a83b5337.tar.gz
infinitytier-f2d2df2b112c8a644b718abc521af296a83b5337.zip
Cluster build fix.
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 933bfb37..2a261e51 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -361,7 +361,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->hasClusterOptimalPath(RR->node->now())) ) {
+ if ( (peer) && (peer->hasLocalClusterOptimalPath(RR->node->now())) ) {
Buffer<1024> buf;
peer->identity().serialize(buf);
Mutex::Lock _l2(_members[fromMemberId].lock);