diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-03 23:54:02 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-03 23:54:02 -0800 |
| commit | dcb1233b0d5478f2f544a99cf24314155e711050 (patch) | |
| tree | 681f19cc58b72d246ab27d42eb0604c3b3c1507f /node/Cluster.cpp | |
| parent | 8a2ff0b31ea5df159b90640ccb9b86e8cb9040bc (diff) | |
| download | infinitytier-dcb1233b0d5478f2f544a99cf24314155e711050.tar.gz infinitytier-dcb1233b0d5478f2f544a99cf24314155e711050.zip | |
Slight refactor to RENEDEZVOUS sending code for federation.
Diffstat (limited to 'node/Cluster.cpp')
| -rw-r--r-- | node/Cluster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp index 356a0887..00122402 100644 --- a/node/Cluster.cpp +++ b/node/Cluster.cpp @@ -400,7 +400,7 @@ void Cluster::handleIncomingStateMessage(const void *msg,unsigned int len) SharedPtr<Peer> localPeer(RR->topology->getPeerNoCache(localPeerAddress)); if ((localPeer)&&(numRemotePeerPaths > 0)) { InetAddress bestLocalV4,bestLocalV6; - localPeer->getBestActiveAddresses(now,bestLocalV4,bestLocalV6); + localPeer->getRendezvousAddresses(now,bestLocalV4,bestLocalV6); InetAddress bestRemoteV4,bestRemoteV6; for(unsigned int i=0;i<numRemotePeerPaths;++i) { @@ -652,7 +652,7 @@ void Cluster::relayViaCluster(const Address &fromPeerAddress,const Address &toPe if (fromPeerAddress) { SharedPtr<Peer> fromPeer(RR->topology->getPeerNoCache(fromPeerAddress)); if (fromPeer) - fromPeer->getBestActiveAddresses(now,v4,v6); + fromPeer->getRendezvousAddresses(now,v4,v6); } uint8_t addrCount = 0; if (v4) |
