diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-06-11 17:01:42 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 22:51:31 -0400 |
commit | a479d08b7cebb0f20e67dd173505093402f59aa0 (patch) | |
tree | 3e454bb57ae650adcf996d44179a11ed5759b5ec | |
parent | c0796ee1dde8cd4f3cc73d34590dfe82a82f9220 (diff) | |
download | lighttpd-git-a479d08b7cebb0f20e67dd173505093402f59aa0.tar.gz |
[mod_extforward] config warning for module order
expand config warning for module load order to include other TLS modules
-rw-r--r-- | src/mod_extforward.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mod_extforward.c b/src/mod_extforward.c index 30fe61e5..06b01bac 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -426,10 +426,13 @@ SETDEFAULTS_FUNC(mod_extforward_set_defaults) { } for (; i < srv->srvconf.modules->used; ++i) { data_string *ds = (data_string *)srv->srvconf.modules->data[i]; - if (buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_openssl"))) { + if (buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_openssl")) + || buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_mbedtls")) + || buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_gnutls"))) { log_error(srv->errh, __FILE__, __LINE__, - "mod_extforward must be loaded after mod_openssl in " - "server.modules when extforward.hap-PROXY = \"enable\""); + "mod_extforward must be loaded after %s in " + "server.modules when extforward.hap-PROXY = \"enable\"", + ds->value.ptr); break; } } |