From f6ad138561a86ee5cac51b10680916967abc7a07 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 13 Sep 2013 14:41:20 -0400 Subject: Bit more of adding version to OK(HELLO) --- node/PacketDecoder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node/PacketDecoder.cpp') diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp index 67f70554..3b54bed7 100644 --- a/node/PacketDecoder.cpp +++ b/node/PacketDecoder.cpp @@ -273,6 +273,7 @@ bool PacketDecoder::_doHELLO(const RuntimeEnvironment *_r) SharedPtr candidate(new Peer(_r->identity,id)); candidate->setPathAddress(_remoteAddress,false); + candidate->setRemoteVersion(vMajor,vMinor,vRevision); _CBaddPeerFromHello_Data *arg = new _CBaddPeerFromHello_Data; arg->renv = _r; @@ -290,6 +291,7 @@ bool PacketDecoder::_doHELLO(const RuntimeEnvironment *_r) } catch ( ... ) { TRACE("dropped HELLO from %s(%s): unexpected exception",source().toString().c_str(),_remoteAddress.toString().c_str()); } + return true; } -- cgit v1.2.3