mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-30 06:21:19 +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);
|
parse_conf(config_path);
|
||||||
} else {
|
} else {
|
||||||
|
configless = 1;
|
||||||
|
foreground = 1;
|
||||||
|
|
||||||
if (hostname == NULL)
|
if (hostname == NULL)
|
||||||
hostname = "localhost";
|
hostname = "localhost";
|
||||||
if (certs_dir == NULL)
|
if (certs_dir == NULL)
|
||||||
certs_dir = data_dir();
|
certs_dir = data_dir();
|
||||||
load_local_cert(hostname, certs_dir);
|
load_local_cert(hostname, certs_dir);
|
||||||
|
|
||||||
|
hosts[0].domain = "*";
|
||||||
hosts[0].locations[0].auto_index = 1;
|
hosts[0].locations[0].auto_index = 1;
|
||||||
hosts[0].locations[0].match = "*";
|
hosts[0].locations[0].match = "*";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user