Add BlockingTCP option, useful when using TCPOnly on slow or congested links.
[oweals/tinc.git] / src / net_setup.c
index 7896addf847337f30a047f0c6ba93ebdbfbdcbb0..0c9f27c388821edb00d3aeac63a228199f2e6bfa 100644 (file)
@@ -286,6 +286,8 @@ bool setup_myself(void)
        if(get_config_bool(lookup_config(myself->connection->config_tree, "TCPOnly"), &choice) && choice)
                myself->options |= OPTION_TCPONLY;
 
+       get_config_bool(lookup_config(config_tree, "BlockingTCP"), &blockingtcp);
+
        if(get_config_bool(lookup_config(myself->connection->config_tree, "PMTUDiscovery"), &choice) && choice)
                myself->options |= OPTION_PMTU_DISCOVERY;