mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
DHT fix.
This commit is contained in:
parent
22b1ebb46e
commit
5fe8429da8
@ -792,11 +792,11 @@ static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_k
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < dht->num_friends; ++i) {
|
||||
if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->self_public_key)) {
|
||||
if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->friends_list[i].public_key)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->self_public_key)) {
|
||||
if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->friends_list[i].public_key)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user