From f4d1d1634c544fdc8f214ae53dd26fa0380f6142 Mon Sep 17 00:00:00 2001 From: frekky Date: Sat, 9 Jan 2016 15:26:03 +0800 Subject: [PATCH] Server now functions the same as before, using default preset --- src/iodined.c | 5 +++++ src/server.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;