Rename setup_network_connections() and split out try_outgoing_connections()
[tinc] / src / tincd.c
index f909d9a..6fa8785 100644 (file)
@@ -500,13 +500,16 @@ int main2(int argc, char **argv)
 
        if(!detach())
                return 1;
-               
 
        /* Setup sockets and open device. */
 
-       if(!setup_network_connections())
+       if(!setup_network())
                goto end;
 
+       /* Initiate all outgoing connections. */
+
+       try_outgoing_connections();
+
        /* Start main loop. It only exits when tinc is killed. */
 
        status = main_loop();