diff options
Diffstat (limited to 'testing/nTox.c')
-rw-r--r-- | testing/nTox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 8813f305..a476cc19 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -521,12 +521,12 @@ int main(int argc, char *argv[]) | |||
521 | exit(1); | 521 | exit(1); |
522 | 522 | ||
523 | unsigned char *binary_string = hex_string_to_bin(argv[3]); | 523 | unsigned char *binary_string = hex_string_to_bin(argv[3]); |
524 | DHT_bootstrap(bootstrap_ip_port, binary_string); | 524 | DHT_bootstrap(m->dht, bootstrap_ip_port, binary_string); |
525 | free(binary_string); | 525 | free(binary_string); |
526 | nodelay(stdscr, TRUE); | 526 | nodelay(stdscr, TRUE); |
527 | 527 | ||
528 | while (true) { | 528 | while (true) { |
529 | if (on == 0 && DHT_isconnected()) { | 529 | if (on == 0 && DHT_isconnected(m->dht)) { |
530 | new_lines("[i] connected to DHT\n[i] define username with /n"); | 530 | new_lines("[i] connected to DHT\n[i] define username with /n"); |
531 | on = 1; | 531 | on = 1; |
532 | } | 532 | } |