1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 09:16:45 +02:00

unresolved addresses fail silently

This commit is contained in:
Jfreegman
2013-08-12 22:34:08 -04:00
parent 0c6204ce82
commit 095b1b5db2
2 changed files with 3 additions and 2 deletions

2
main.c
View File

@ -181,7 +181,7 @@ int init_connection(void)
dht.port = htons(atoi(port));
uint32_t resolved_address = resolve_addr(ip);
if (resolved_address == 0)
return 4;
return 0;
dht.ip.i = resolved_address;
unsigned char *binary_string = hex_string_to_bin(key);
DHT_bootstrap(dht, binary_string);