make configless mode works again. also accept every host

This commit is contained in:
Omar Polo 2021-01-27 15:00:55 +00:00
parent 58173ca20e
commit 72bbed9136
1 changed files with 4 additions and 0 deletions

4
gmid.c
View File

@ -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 = "*";