Fixed target port for kademlia ping.
This commit is contained in:
parent
d0512d9084
commit
1fa0d4bd68
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue