0 /* See LICENSE file for copyright and license details. */
1 #include <stdlib.h>
2 #include <time.h>
3 #include <pthread.h>
4 #include "util.h"
5 #include "conf.h"
6 #include "server.h"
7 #include "sandbox.h"
8 #include "log.h"
9
10 int main() {
11
12 srand(time(NULL));
13
14 if (conf_load("/etc/gmiproxy.conf") && conf_load("gmiproxy.conf")) {
15 return -1;
16 }
17
18 if (proxy_init(1965)) {
19 return -1;
20 }
21
22 proxy_join();
23
24 conf_unload();
25
26 return 0;
27 }
28