Add the AutoConnect option.
When set to a non-zero value, tinc will try to maintain exactly that number of meta connections to other nodes. If there are not enough connections, it will periodically try to set up an outgoing connection to a random node. If there are too many connections, it will periodically try to remove an outgoing connection.
This commit is contained in:
parent
1f8b70efa0
commit
717ea66d7b
6 changed files with 160 additions and 2 deletions
|
|
@ -134,6 +134,7 @@ extern int udp_rcvbuf;
|
|||
extern int udp_sndbuf;
|
||||
extern bool do_prune;
|
||||
extern char *myport;
|
||||
extern int autoconnect;
|
||||
extern int contradicting_add_edge;
|
||||
extern int contradicting_del_edge;
|
||||
extern time_t last_config_check;
|
||||
|
|
@ -190,6 +191,7 @@ extern void purge(void);
|
|||
extern void retry(void);
|
||||
extern int reload_configuration(void);
|
||||
extern void load_all_subnets(void);
|
||||
extern void load_all_nodes(void);
|
||||
|
||||
#ifndef HAVE_MINGW
|
||||
#define closesocket(s) close(s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue