diff --git a/src/Makefile.am b/src/Makefile.am index 866b2b3b0481e0fad373709dcd511fbd48502b0c..44a655a556940afdcde10a0a45dc16fa10bb1d04 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,10 +9,10 @@ libopendht_la_LIBADD = ./argon2/libargon2.la libopendht_la_SOURCES = \ dht.cpp \ - network_engine.cpp \ + network_engine.cpp \ utils.cpp \ infohash.cpp \ - node.cpp \ + node.cpp \ value.cpp \ crypto.cpp \ securedht.cpp \ @@ -27,10 +27,10 @@ nobase_include_HEADERS = \ ../include/opendht.h \ ../include/opendht/dht.h \ ../include/opendht/network_engine.h \ - ../include/opendht/scheduler.h \ + ../include/opendht/scheduler.h \ ../include/opendht/utils.h \ ../include/opendht/infohash.h \ - ../include/opendht/node.h \ + ../include/opendht/node.h \ ../include/opendht/value.h \ ../include/opendht/crypto.h \ ../include/opendht/securedht.h \ diff --git a/src/network_engine.cpp b/src/network_engine.cpp index 64f5a3c3086f451933ef03b2c394b4eb0e261571..ea968eebabd2054d3d551a2200febad2d3e8e258 100644 --- a/src/network_engine.cpp +++ b/src/network_engine.cpp @@ -203,9 +203,6 @@ NetworkEngine::processMessage(const uint8_t *buf, size_t buflen, const sockaddr case MessageType::Listen: { DHT_LOG.DEBUG("[node %s %s] got 'listen' request for %s.", msg.id.toString().c_str(), print_addr(from, fromlen).c_str(), msg.info_hash.toString().c_str()); - if (!msg.tid.matches(TransPrefix::LISTEN, &ttid)) { - break; - } ++in_stats.listen; RequestAnswer answer = onListen(node, msg.info_hash, msg.token, msg.tid.getTid()); sendListenConfirmation(from, fromlen, msg.tid);