💾 Archived View for gemini.rmf-dev.com › repo › Vaati › gmi_proxy › files › 77ce7c08a56a1a2ac8df7952… captured on 2023-04-19 at 23:45:39. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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