diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-27 09:53:43 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-27 09:53:43 -0700 |
commit | 9617208e4027bec8a72e72a1fd89aa19ea9367d8 (patch) | |
tree | 6e8a7402dc7da5d6e713cb25b931329b86665230 /node/IncomingPacket.cpp | |
parent | fb3b7a3baaf1fc1a6d922ea7aaa24a37c7a14952 (diff) | |
download | infinitytier-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.cpp | 2 |
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()); |