MINOR: httpclient: enabled the use of SNI presets

This commit allows setting SNI outside http_client.c code.
This commit is contained in:
Miroslav Zagorac 2022-09-19 12:20:29 +02:00 committed by William Lallemand
parent 133e2a23d0
commit cbfee3a9f6

View File

@ -1378,7 +1378,7 @@ static int httpclient_postcheck()
srv_ssl = srv;
}
}
if (srv_ssl) {
if (srv_ssl && !srv_ssl->sni_expr) {
/* init the SNI expression */
/* always use the host header as SNI, without the port */
srv_ssl->sni_expr = strdup("req.hdr(host),field(1,:)");