From 1fa0d4bd682060e5f60afbd4ff38f116d49713c7 Mon Sep 17 00:00:00 2001 From: Jose Marcial Vieira Bisneto Date: Thu, 9 Mar 2017 14:03:04 -0300 Subject: [PATCH] Fixed target port for kademlia ping. --- routing/kademlia.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routing/kademlia.c b/routing/kademlia.c index 1b11336..99c14e7 100644 --- a/routing/kademlia.c +++ b/routing/kademlia.c @@ -369,6 +369,8 @@ int ping_kademlia (char *ip, uint16_t port) return 0; } + sa.sin_port = htons (port); + dht_ping_node((struct sockaddr*)&sa, sizeof sa); //usleep(random() % 100000);