From 57e6cf6b01e981ce159d472f3e3ed92f893ad443 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 5 May 2021 10:39:22 +0200 Subject: changing server logic --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 36a37c6..bb1a4ac 100644 --- a/src/main.c +++ b/src/main.c @@ -16,15 +16,20 @@ int main(int argc, char* argv[]) { + log_init_stdout(_LOG_DEBUG); //CMD line arg parsing goes in here #ifdef _TEST run_test(); #else server_config_t config; + + memset(&config, 0, sizeof config); + config.bind_ip = "0.0.0.0"; config.bind_port = 53; + config.zonefile = "/nofile"; - run_dns_server( &config ); + server_start( &config ); #endif } -- cgit v1.2.3