💾 Archived View for gemini.rmf-dev.com › repo › Vaati › gmi_proxy › files › 6b6cfbe96b8bd14e6d1a7802… captured on 2023-11-04 at 12:34:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Go Back

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") &&

15 conf_load("/usr/local/etc/gmiproxy.conf") &&

16 conf_load("gmiproxy.conf")) {

17 return -1;

18 }

19

20 if (proxy_init(1965)) {

21 return -1;

22 }

23

24 proxy_join();

25

26 conf_unload();

27

28 return 0;

29 }

30