diff --git a/src/iodined.c b/src/iodined.c index 14e8b69..e307d73 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -299,6 +299,11 @@ main(int argc, char **argv) __progname++; #endif + // Load default values from preset + memcpy(&server, &preset_default, sizeof(struct server_instance)); + + server.running = 1; + while ((choice = getopt(argc, argv, "46vcsfhDu:t:d:m:l:L:p:n:b:P:z:F:i:")) != -1) { switch(choice) { case '4': diff --git a/src/server.c b/src/server.c index 0e37af9..a00ef0e 100644 --- a/src/server.c +++ b/src/server.c @@ -705,7 +705,7 @@ server_tunnel() time_t last_action = time(NULL); if (server.debug >= 5) - window_debug = server.debug - 3; + window_debug = server.debug - 4; while (server.running) { int maxfd;