summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-28 10:39:45 -0400
committerirungentoo <irungentoo@gmail.com>2013-09-28 10:39:45 -0400
commite1bea734e0ecccb1b3026e3cd74aa4cc9ce68883 (patch)
tree09e1d3469a66de2ed992b32e5318aa8c9ca42d55 /toxcore/DHT.c
parent2b8d0d045a2a407b519df2f0fdb99683ac43ef26 (diff)
Fixed small issue.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c2
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)
1284void DHT_bootstrap(DHT *dht, IP_Port ip_port, uint8_t *public_key) 1285void 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}
1289int DHT_bootstrap_from_address(DHT *dht, const char *address, uint8_t ipv6enabled, 1289int 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)