When chrooted, we either need to force-initialize resolver
and/or nsswitch somehow (no clean way) or resolve all the
names we want before entering chroot jail. The latter
looks cleaner, easier and it is actually safe because
we still don't talk with the remote nodes there, only
initiating outgoing connections.
if(!setup_network())
goto end;
- /* Change process priority */
+ /* Initiate all outgoing connections. */
+
+ try_outgoing_connections();
+
+ /* Change process priority */
char *priority = 0;
if (!drop_privs())
goto end;
- /* Initiate all outgoing connections. */
-
- try_outgoing_connections();
-
/* Start main loop. It only exits when tinc is killed. */
status = main_loop();