Fixed target port for kademlia ping.

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-03-09 14:03:04 -03:00
parent d0512d9084
commit 1fa0d4bd68

View file

@ -369,6 +369,8 @@ int ping_kademlia (char *ip, uint16_t port)
return 0; return 0;
} }
sa.sin_port = htons (port);
dht_ping_node((struct sockaddr*)&sa, sizeof sa); dht_ping_node((struct sockaddr*)&sa, sizeof sa);
//usleep(random() % 100000); //usleep(random() % 100000);