summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-27 09:53:43 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-27 09:53:43 -0700
commit9617208e4027bec8a72e72a1fd89aa19ea9367d8 (patch)
tree6e8a7402dc7da5d6e713cb25b931329b86665230 /node/IncomingPacket.cpp
parentfb3b7a3baaf1fc1a6d922ea7aaa24a37c7a14952 (diff)
downloadinfinitytier-9617208e4027bec8a72e72a1fd89aa19ea9367d8.tar.gz
infinitytier-9617208e4027bec8a72e72a1fd89aa19ea9367d8.zip
Some cleanup, and use VERB_PUSH_DIRECT_PATHS to redirect newer peers.
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r--node/IncomingPacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp
index c8526dfb..d8f458e8 100644
--- a/node/IncomingPacket.cpp
+++ b/node/IncomingPacket.cpp
@@ -280,8 +280,8 @@ bool IncomingPacket::_doHELLO(const RuntimeEnvironment *RR)
// VALID -- if we made it here, packet passed identity and authenticity checks!
- peer->received(RR,_localAddress,_remoteAddress,hops(),pid,Packet::VERB_HELLO,0,Packet::VERB_NOP);
peer->setRemoteVersion(protoVersion,vMajor,vMinor,vRevision);
+ peer->received(RR,_localAddress,_remoteAddress,hops(),pid,Packet::VERB_HELLO,0,Packet::VERB_NOP);
if (destAddr)
RR->sa->iam(id.address(),_remoteAddress,destAddr,RR->topology->isRoot(id),RR->node->now());