[mod_extforward] config warning for module order

expand config warning for module load order to include other TLS modules
personal/stbuehler/ci-build
Glenn Strauss 2020-06-11 17:01:42 -04:00
parent c0796ee1dd
commit a479d08b7c
1 changed files with 6 additions and 3 deletions

View File

@ -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;
}
}