aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-27 15:00:55 +0000
committerOmar Polo <op@omarpolo.com>2021-01-27 15:00:55 +0000
commit72bbed91365401d14492dac426401476986c84cf (patch)
treeb3818682799cfd80db95bcd13edcb7e164988c55 /gmid.c
parent58173ca20e1c2ca78dcb04ae194734079b89166d (diff)
make configless mode works again. also accept every host
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index f9811b9..b0a25d1 100644
--- a/gmid.c
+++ b/gmid.c
@@ -612,12 +612,16 @@ main(int argc, char **argv)
parse_conf(config_path);
} else {
+ configless = 1;
+ foreground = 1;
+
if (hostname == NULL)
hostname = "localhost";
if (certs_dir == NULL)
certs_dir = data_dir();
load_local_cert(hostname, certs_dir);
+ hosts[0].domain = "*";
hosts[0].locations[0].auto_index = 1;
hosts[0].locations[0].match = "*";