projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the ListenAddress option.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
3d6db8b
..
48f344e
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-400,14
+400,7
@@
int main2(int argc, char **argv) {
/* Setup sockets and open device. */
if(!setup_network())
/* Setup sockets and open device. */
if(!setup_network())
- goto end_nonet;
-
- if(!init_control())
- goto end_nonet;
-
- /* Initiate all outgoing connections. */
-
- try_outgoing_connections();
+ goto end;
/* Change process priority */
/* Change process priority */
@@
-439,19
+432,17
@@
int main2(int argc, char **argv) {
/* Start main loop. It only exits when tinc is killed. */
/* Start main loop. It only exits when tinc is killed. */
-
status = main_loop(
);
+
logger(DEBUG_ALWAYS, LOG_NOTICE, "Ready"
);
- /* Shutdown properly. */
+ try_outgoing_connections();
- if(debug_level >= DEBUG_CONNECTIONS)
- devops.dump_stats();
+ status = main_loop();
- close_network_connections();
+ /* Shutdown properly. */
end:
end:
-
exit_control
();
+
close_network_connections
();
-end_nonet:
logger(DEBUG_ALWAYS, LOG_NOTICE, "Terminating");
free(priority);
logger(DEBUG_ALWAYS, LOG_NOTICE, "Terminating");
free(priority);