diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index a4f063ec..0bbacc90 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -967,6 +967,7 @@ static int handle_getnodes(void *object, IP_Port source, uint8_t *packet, uint32 | |||
967 | ping_id); /* TODO: prevent possible amplification attacks */ | 967 | ping_id); /* TODO: prevent possible amplification attacks */ |
968 | #endif | 968 | #endif |
969 | 969 | ||
970 | add_toping(dht->ping, packet + 1, source); | ||
970 | //send_ping_request(dht, source, packet + 1); /* TODO: make this smarter? */ | 971 | //send_ping_request(dht, source, packet + 1); /* TODO: make this smarter? */ |
971 | 972 | ||
972 | return 0; | 973 | return 0; |
@@ -1284,7 +1285,6 @@ static void do_Close(DHT *dht) | |||
1284 | void DHT_bootstrap(DHT *dht, IP_Port ip_port, uint8_t *public_key) | 1285 | void DHT_bootstrap(DHT *dht, IP_Port ip_port, uint8_t *public_key) |
1285 | { | 1286 | { |
1286 | getnodes(dht, ip_port, public_key, dht->c->self_public_key); | 1287 | getnodes(dht, ip_port, public_key, dht->c->self_public_key); |
1287 | send_ping_request(dht->ping, ip_port, public_key); | ||
1288 | } | 1288 | } |
1289 | int DHT_bootstrap_from_address(DHT *dht, const char *address, uint8_t ipv6enabled, | 1289 | int DHT_bootstrap_from_address(DHT *dht, const char *address, uint8_t ipv6enabled, |
1290 | uint16_t port, uint8_t *public_key) | 1290 | uint16_t port, uint8_t *public_key) |