From: Miroslav Zagorac Date: Mon, 19 Sep 2022 10:20:29 +0000 (+0200) Subject: MINOR: httpclient: enabled the use of SNI presets X-Git-Tag: v2.7-dev7~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbfee3a9f69c57ab5986fab9cf438cc4b5dbfaa0;p=thirdparty%2Fhaproxy.git MINOR: httpclient: enabled the use of SNI presets This commit allows setting SNI outside http_client.c code. --- diff --git a/src/http_client.c b/src/http_client.c index b5588eb5e9..e2af029559 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -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,:)");