summaryrefslogtreecommitdiff
path: root/toxcore/onion_announce.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-15 00:48:35 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-16 14:17:05 +0000
commit0b13936ce8498735e245531c222c035f41fd5e0f (patch)
treebafaef43863e822bbcb0c05192da0a973b3381a1 /toxcore/onion_announce.c
parentb3ec05543acdc0019b545de170720dc32d8f28d3 (diff)
Use apidsl to generate LAN_discovery.h.
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r--toxcore/onion_announce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c
index d60c09c9..ab96a546 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 /*Respond with a announce response packet*/ 405 /*Respond with a announce response packet*/
406 Node_format nodes_list[MAX_SENT_NODES]; 406 Node_format nodes_list[MAX_SENT_NODES];
407 unsigned int num_nodes = get_close_nodes(onion_a->dht, plain + ONION_PING_ID_SIZE, nodes_list, 0, 407 unsigned int num_nodes = get_close_nodes(onion_a->dht, plain + ONION_PING_ID_SIZE, nodes_list, 0,
408 LAN_ip(source.ip) == 0, 1); 408 ip_is_lan(source.ip) == 0, 1);
409 uint8_t nonce[CRYPTO_NONCE_SIZE]; 409 uint8_t nonce[CRYPTO_NONCE_SIZE];
410 random_nonce(nonce); 410 random_nonce(nonce);
411 411