Add LocalDiscovery option which tries to detect peers on the local network.
[oweals/tinc.git] / src / net_setup.c
index 299e3729e0cb131555d99238e8b4c2745325c69b..bab50fe4389d36aa1b168543ad356c24635a3e38 100644 (file)
@@ -356,6 +356,7 @@ static bool setup_myself(void) {
        get_config_bool(lookup_config(config_tree, "DirectOnly"), &directonly);
        get_config_bool(lookup_config(config_tree, "StrictSubnets"), &strictsubnets);
        get_config_bool(lookup_config(config_tree, "TunnelServer"), &tunnelserver);
+       get_config_bool(lookup_config(config_tree, "LocalDiscovery"), &localdiscovery);
        strictsubnets |= tunnelserver;
 
        if(get_config_string(lookup_config(config_tree, "Mode"), &mode)) {