diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-27 01:07:46 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-05-20 19:35:28 +0000 |
commit | 21675ce0d2581597b0e0a727ab4cf6cfb796a037 (patch) | |
tree | e1ac4ca63c5cc2b2dc78fcd5b20a8202eab98d9d /toxcore/onion_announce.c | |
parent | 4f6ab0708c85f3e3da7726f6caecc381c6d21370 (diff) |
Finish @Diadlo's network Family abstraction.
The Family stuff in toxcore is a big mess. I'm sure I saw a bunch of bugs
on the way, but I'm not verifying that code now, so the bugs stay.
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r-- | toxcore/onion_announce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c index 5aec3492..6c9e8659 100644 --- a/toxcore/onion_announce.c +++ b/toxcore/onion_announce.c | |||
@@ -405,7 +405,7 @@ static int handle_announce_request(void *object, IP_Port source, const uint8_t * | |||
405 | 405 | ||
406 | /*Respond with a announce response packet*/ | 406 | /*Respond with a announce response packet*/ |
407 | Node_format nodes_list[MAX_SENT_NODES]; | 407 | Node_format nodes_list[MAX_SENT_NODES]; |
408 | unsigned int num_nodes = get_close_nodes(onion_a->dht, plain + ONION_PING_ID_SIZE, nodes_list, 0, | 408 | unsigned int num_nodes = get_close_nodes(onion_a->dht, plain + ONION_PING_ID_SIZE, nodes_list, net_family_unspec, |
409 | ip_is_lan(source.ip) == 0, 1); | 409 | ip_is_lan(source.ip) == 0, 1); |
410 | uint8_t nonce[CRYPTO_NONCE_SIZE]; | 410 | uint8_t nonce[CRYPTO_NONCE_SIZE]; |
411 | random_nonce(nonce); | 411 | random_nonce(nonce); |