SSL: avoid warning when ECH is not configured and not supported.

This commit is contained in:
QirunGao 2025-12-02 23:32:47 +01:00 committed by Roman Arutyunyan
parent 367113670e
commit 0427f5335f
1 changed files with 6 additions and 3 deletions

View File

@ -1741,9 +1741,12 @@ cleanup:
return rc;
#else
if (filenames != NULL) {
ngx_log_error(NGX_LOG_WARN, ssl->log, 0,
"\"ssl_ech_file\" is not supported on this platform, "
"ignored");
}
return NGX_OK;
#endif
}