Merged load_all_subnets and load_all_nodes to make autoconnect and strictsubnets work faster
When AutoConnect is on tinc needs to know if nodes have Address to defined in thier hosts files. Currently tinc parsed node's host files if StrictSubnet was enabled. To reduce the parsing overhead I have merged load_all_subnets with load_all_nodes, such that load_all_subnets has been removed and load_all_nodes has if-statement extracting Subnet information from node's host file.
This commit is contained in:
parent
3c67735720
commit
f12d4a3e6d
3 changed files with 32 additions and 69 deletions
|
|
@ -350,7 +350,7 @@ int reload_configuration(void) {
|
|||
if (subnet->owner)
|
||||
subnet->expires = 1;
|
||||
|
||||
load_all_subnets();
|
||||
load_all_nodes();
|
||||
|
||||
for splay_each(subnet_t, subnet, subnet_tree) {
|
||||
if (!subnet->owner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue