diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 07:11:59 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 07:11:59 -0500 |
commit | 4419734a7db21cd6a9ee8aba911f220cbecba085 (patch) | |
tree | 93bda7e55ef906db246434509eb5334513c27b87 /node/IncomingPacket.cpp | |
parent | f821db29f34d040d59b6118164bf3c7242959a0e (diff) | |
download | infinitytier-4419734a7db21cd6a9ee8aba911f220cbecba085.tar.gz infinitytier-4419734a7db21cd6a9ee8aba911f220cbecba085.zip |
Implement continuous contacting of designated anchors and multicast replicators - GitHub issue #666
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r-- | node/IncomingPacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 341f3281..8a6f4bc5 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -514,7 +514,7 @@ bool IncomingPacket::_doOK(const RuntimeEnvironment *RR,void *tPtr,const SharedP bool IncomingPacket::_doWHOIS(const RuntimeEnvironment *RR,void *tPtr,const SharedPtr<Peer> &peer) { - if ((!RR->topology->amRoot())&&(!peer->rateGateInboundWhoisRequest(RR->node->now()))) + if ((!RR->topology->amUpstream())&&(!peer->rateGateInboundWhoisRequest(RR->node->now()))) return true; Packet outp(peer->address(),RR->identity.address(),Packet::VERB_OK); |