Browse Source

Drop limitation on sending NODE messages when an incoming DHT message

Caleb James DeLisle 8 years ago
parent
commit
748cd7433b
1 changed files with 3 additions and 4 deletions
  1. 3 4
      dht/Pathfinder.c

+ 3 - 4
dht/Pathfinder.c

@@ -391,10 +391,9 @@ static Iface_DEFUN incomingMsg(struct Message* msg, struct Pathfinder_pvt* pf)
 
     DHTModuleRegistry_handleIncoming(&dht, pf->registry);
 
-    if (!version && addr.protocolVersion) {
-        struct Message* nodeMsg = Message_new(0, 256, msg->alloc);
-        Iface_CALL(sendNode, nodeMsg, &addr, 0xfffffff0u, pf);
-    }
+    struct Message* nodeMsg = Message_new(0, 256, msg->alloc);
+    Iface_CALL(sendNode, nodeMsg, &addr, 0xfffffff0u, pf);
+
     if (dht.pleaseRespond) {
         // what a beautiful hack, see incomingFromDHT
         return Iface_next(&pf->pub.eventIf, msg);