aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-05 10:39:22 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-05 10:39:22 +0200
commit57e6cf6b01e981ce159d472f3e3ed92f893ad443 (patch)
treeec90834b00596e8a2992182341263f242fcfc753 /src/main.c
parent98c68ed8cc11fa8932e480256b2544c50aaa790b (diff)
downloaddns-57e6cf6b01e981ce159d472f3e3ed92f893ad443.tar.gz
changing server logic
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
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
}