mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-27 21:11:51 +02:00
make configless mode works again. also accept every host
This commit is contained in:
parent
58173ca20e
commit
72bbed9136
4
gmid.c
4
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 = "*";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user