Add the DirectOnly option.
[oweals/tinc.git] / src / net_setup.c
index 6e51b2e243107114577aa320473e17912eaf0085..867fef9455592e5e5c0fa26e5f294517bdcdda99 100644 (file)
@@ -339,6 +339,7 @@ bool setup_myself(void) {
        if(myself->options & OPTION_TCPONLY)
                myself->options |= OPTION_INDIRECT;
 
+       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);
        strictsubnets |= tunnelserver;