diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-20 17:14:02 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-20 17:27:10 -0400 |
commit | f70b248390060da885ba4da372393a0292a75e6a (patch) | |
tree | 5bc40cfa2b859d0189e1b5a3c32050603da4dba3 | |
parent | a45445e4883c7eeff4f6063ab50c25a983bbec61 (diff) |
skip tox bootstrap
-rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -11,12 +11,14 @@ static struct Tox_Options tox_options; | |||
11 | Tox *tox; | 11 | Tox *tox; |
12 | int client_socket = 0; | 12 | int client_socket = 0; |
13 | TOX_CONNECTION connection_status = TOX_CONNECTION_NONE; | 13 | TOX_CONNECTION connection_status = TOX_CONNECTION_NONE; |
14 | |||
15 | TOX_CONNECTION friend_connection_status = TOX_CONNECTION_NONE; | 14 | TOX_CONNECTION friend_connection_status = TOX_CONNECTION_NONE; |
16 | /** CONFIGURATION OPTIONS **/ | 15 | /** CONFIGURATION OPTIONS **/ |
17 | /* Whether we're a client */ | 16 | /* Whether we're a client */ |
18 | int client_mode = 0; | 17 | int client_mode = 0; |
19 | 18 | ||
19 | /* Don't bootstrap nodes */ | ||
20 | int skip_bootstrap = 1; | ||
21 | |||
20 | /* Just send a ping and exit */ | 22 | /* Just send a ping and exit */ |
21 | int ping_mode = 0; | 23 | int ping_mode = 0; |
22 | 24 | ||
@@ -1552,7 +1554,8 @@ int main(int argc, char *argv[]) | |||
1552 | tox_callback_self_connection_status(tox, handle_connection_status_change); | 1554 | tox_callback_self_connection_status(tox, handle_connection_status_change); |
1553 | tox_callback_friend_connection_status(tox, handle_friend_connection_status); | 1555 | tox_callback_friend_connection_status(tox, handle_friend_connection_status); |
1554 | 1556 | ||
1555 | do_bootstrap(tox); | 1557 | if (!skip_bootstrap) |
1558 | do_bootstrap(tox); | ||
1556 | 1559 | ||
1557 | if((!client_mode) || load_saved_toxid_in_client_mode) | 1560 | if((!client_mode) || load_saved_toxid_in_client_mode) |
1558 | { | 1561 | { |