mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
MINOR: httpclient: enabled the use of SNI presets
This commit allows setting SNI outside http_client.c code.
This commit is contained in:
parent
133e2a23d0
commit
cbfee3a9f6
@ -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,:)");
|
||||
|
Loading…
Reference in New Issue
Block a user