diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-15 10:37:32 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-15 10:37:32 -0800 |
commit | 022d3857cc3f4535ffaf5e7211cde6502c4d6e10 (patch) | |
tree | 0dc4225db2a932c45480c44221845010b38dce12 | |
parent | 82aa3f59d6f60995719cc3d857b4fa3bb33df19d (diff) | |
download | infinitytier-022d3857cc3f4535ffaf5e7211cde6502c4d6e10.tar.gz infinitytier-022d3857cc3f4535ffaf5e7211cde6502c4d6e10.zip |
Fix should use ECHO check.
-rw-r--r-- | node/Peer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index e93a27b8..31e9c27d 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -194,8 +194,8 @@ void Peer::received( TRACE("got %s via unknown path %s(%s), confirming...",Packet::verbString(verb),_id.address().toString().c_str(),remoteAddr.toString().c_str()); - if ((_vMajor >= 1)&&(_vMinor >= 1)&&(_vRevision >= 1)) { - // 1.1.1 and newer nodes support ECHO, which is smaller + if ( (_vProto >= 5) && ( !((_vMajor == 1)&&(_vMinor == 1)&&(_vRevision == 0)) ) ) { + // 1.1.1 and newer nodes support ECHO, which is smaller -- but 1.1.0 has a bug so use HELLO there too Packet outp(_id.address(),RR->identity.address(),Packet::VERB_ECHO); outp.armor(_key,true); RR->node->putPacket(localAddr,remoteAddr,outp.data(),outp.size()); |