commit | cbfee3a9f69c57ab5986fab9cf438cc4b5dbfaa0 | [log] [tgz] |
---|---|---|
author | Miroslav Zagorac <mzagorac@haproxy.com> | Mon Sep 19 12:20:29 2022 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Mon Sep 19 14:39:28 2022 +0200 |
tree | 2ba701682daabbaaf410aa53d0a7c66d9076898e | |
parent | 133e2a23d00f7ce2159afbc1908920b5bef9e431 [diff] |
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 b5588eb..e2af029 100644 --- a/src/http_client.c +++ b/src/http_client.c
@@ -1378,7 +1378,7 @@ 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,:)");