diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-21 15:01:37 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-21 15:01:37 +0000 |
commit | b2a6b6137186dd3fce21640150926a133a35c2c8 (patch) | |
tree | 51ed37335623b10e07b141e22e56cf132d26fb4b /gmid.c | |
parent | 20c9ff466beafa357d501494989a6263516d3342 (diff) |
rename mimes to mime ; pass config esplicitly to mime* functions
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -304,7 +304,7 @@ listener_main() struct tls *ctx = NULL; struct tls_config *tlsconf; - load_default_mime(); + load_default_mime(&conf.mime); if ((tlsconf = tls_config_new()) == NULL) fatal("tls_config_new"); @@ -364,7 +364,7 @@ main(int argc, char **argv) conf.ipv6 = 0; conf.protos = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3; - init_mime(); + init_mime(&conf.mime); while ((ch = getopt(argc, argv, "6C:c:d:fhK:np:x:")) != -1) { switch (ch) { |