From cbfee3a9f69c57ab5986fab9cf438cc4b5dbfaa0 Mon Sep 17 00:00:00 2001 From: Miroslav Zagorac Date: Mon, 19 Sep 2022 12:20:29 +0200 Subject: [PATCH] MINOR: httpclient: enabled the use of SNI presets This commit allows setting SNI outside http_client.c code. --- src/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_client.c b/src/http_client.c index b5588eb5e..e2af02955 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,:)");