summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-20 17:14:02 -0400
committerAndrew Cady <d@jerkface.net>2020-08-20 17:27:10 -0400
commitf70b248390060da885ba4da372393a0292a75e6a (patch)
tree5bc40cfa2b859d0189e1b5a3c32050603da4dba3
parenta45445e4883c7eeff4f6063ab50c25a983bbec61 (diff)
skip tox bootstrap
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index 8915840..98b09b6 100644
--- a/main.c
+++ b/main.c
@@ -11,12 +11,14 @@ static struct Tox_Options tox_options;
11Tox *tox; 11Tox *tox;
12int client_socket = 0; 12int client_socket = 0;
13TOX_CONNECTION connection_status = TOX_CONNECTION_NONE; 13TOX_CONNECTION connection_status = TOX_CONNECTION_NONE;
14
15TOX_CONNECTION friend_connection_status = TOX_CONNECTION_NONE; 14TOX_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 */
18int client_mode = 0; 17int client_mode = 0;
19 18
19/* Don't bootstrap nodes */
20int skip_bootstrap = 1;
21
20/* Just send a ping and exit */ 22/* Just send a ping and exit */
21int ping_mode = 0; 23int 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 {