diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-13 14:41:20 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-13 14:41:20 -0400 |
| commit | f6ad138561a86ee5cac51b10680916967abc7a07 (patch) | |
| tree | 3bbb8893b5baebd3f2a4455a842f6bca95b8c516 /node/PacketDecoder.cpp | |
| parent | d87a1d6b99e8952b4862cf6dc5965f6b5b54bc85 (diff) | |
| download | infinitytier-f6ad138561a86ee5cac51b10680916967abc7a07.tar.gz infinitytier-f6ad138561a86ee5cac51b10680916967abc7a07.zip | |
Bit more of adding version to OK(HELLO)
Diffstat (limited to 'node/PacketDecoder.cpp')
| -rw-r--r-- | node/PacketDecoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Peer> 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; } |
