blob: 36a37c67ee77e034085d57832e639c2c7b611639 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* main.c
* (c) Jonas Gunz, 2019
* License: MIT
* */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "log.h"
#include "server.h"
#ifdef _TEST
#include "test.h"
#endif
int main(int argc, char* argv[])
{
//CMD line arg parsing goes in here
#ifdef _TEST
run_test();
#else
server_config_t config;
config.bind_ip = "0.0.0.0";
config.bind_port = 53;
run_dns_server( &config );
#endif
}
|