X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_setup.c;h=3a14729a12248fd7a29156b81d5c5f51b537d772;hb=3b13c8881100e12d5a4bf184611188bcb57e7144;hp=68b8ed7499d92209573e5aeb582bc991e753b0d4;hpb=a1177c9aef02b7b9fb2702924d78c2b135a12ff2;p=meshlink diff --git a/src/net_setup.c b/src/net_setup.c index 68b8ed74..3a14729a 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -32,8 +32,6 @@ #include "utils.h" #include "xalloc.h" -int autoconnect = 3; - bool node_read_ecdsa_public_key(meshlink_handle_t *mesh, node_t *n) { if(ecdsa_active(n->ecdsa)) return true; @@ -230,7 +228,6 @@ bool setup_myself_reloadable(meshlink_handle_t *mesh) { mesh->localdiscovery = true; keylifetime = 3600; // TODO: check if this can be removed as well mesh->maxtimeout = 900; - autoconnect = 3; mesh->self->options |= OPTION_PMTU_DISCOVERY; read_invitation_key(mesh); @@ -383,8 +380,7 @@ bool setup_myself(meshlink_handle_t *mesh) { graph(mesh); - if(autoconnect) - load_all_nodes(mesh); + load_all_nodes(mesh); /* Open sockets */