Browse Source

[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 1 year ago
parent
commit
a479d08b7c
  1. 9
      src/mod_extforward.c

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

Loading…
Cancel
Save