Fixed target port for kademlia ping.

yamux
Jose Marcial Vieira Bisneto 2017-03-09 14:03:04 -03:00
parent d0512d9084
commit 1fa0d4bd68
1 changed files with 2 additions and 0 deletions

View File

@ -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);