77#include "auto_test_support.h"
88#include "check_compat.h"
99
10- static uint8_t const key [] = {
11- 0x15 , 0xE9 , 0xC3 , 0x09 , 0xCF , 0xCB , 0x79 , 0xFD ,
12- 0xDF , 0x0E , 0xBA , 0x05 , 0x7D , 0xAB , 0xB4 , 0x9F ,
13- 0xE1 , 0x5F , 0x38 , 0x03 , 0xB1 , 0xBF , 0xF0 , 0x65 ,
14- 0x36 , 0xAE , 0x2E , 0x5B , 0xA5 , 0xE4 , 0x69 , 0x0E ,
15- };
16-
17- // Try to bootstrap for 30 seconds.
18- #define NUM_ITERATIONS (unsigned)(30.0 / (ITERATION_INTERVAL / 1000.0))
10+ // Try to bootstrap for 20 seconds.
11+ #define NUM_ITERATIONS (unsigned)(20.0 / (ITERATION_INTERVAL / 1000.0))
1912
2013int main (void )
2114{
@@ -24,13 +17,12 @@ int main(void)
2417 struct Tox_Options * opts = tox_options_new (nullptr );
2518 tox_options_set_udp_enabled (opts , false);
2619 tox_options_set_proxy_type (opts , TOX_PROXY_TYPE_SOCKS5 );
27- tox_options_set_proxy_host (opts , "localhost " );
20+ tox_options_set_proxy_host (opts , "127.0.0.1 " );
2821 tox_options_set_proxy_port (opts , 51724 );
2922 Tox * tox = tox_new_log (opts , nullptr , nullptr );
3023 tox_options_free (opts );
3124
32- tox_add_tcp_relay (tox , "tox.ngc.zone" , 33445 , key , nullptr );
33- tox_bootstrap (tox , "tox.ngc.zone" , 33445 , key , nullptr );
25+ bootstrap_tox_live_network (tox , true);
3426
3527 printf ("Waiting for connection...\n" );
3628
0 commit comments