aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-06 08:18:57 +0000
committerOmar Polo <op@omarpolo.com>2023-06-06 08:18:57 +0000
commitc68baad22af4c65c090a3ba6d83a155561275134 (patch)
tree7fbf71b9c1151fc0df1dace08e785c12e74d70a9 /ge.c
parent0046c1fe9ca72ed024c8562d51e2b320f7968915 (diff)
move config-related code to config.c
reuse it in ge too.
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ge.c b/ge.c
index 10d0c00..6afe035 100644
--- a/ge.c
+++ b/ge.c
@@ -209,8 +209,7 @@ main(int argc, char **argv)
setlocale(LC_CTYPE, "");
logger_init();
- conf.port = 1965;
- conf.protos = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3;
+ config_init();
while ((ch = getopt_long(argc, argv, "d:H:hp:Vv", opts, NULL)) != -1) {
switch (ch) {