BUG/MEDIUM: server: Also copy "check-sni" for server templates.

When using server templates, if "check-sni" is used, make sure it shows up
in all the created servers.

This should be backported to 1.8 and 1.9.
This commit is contained in:
Olivier Houchard 2018-12-21 19:42:01 +01:00 committed by Willy Tarreau
parent 02a16690d7
commit 21944019ca

View File

@ -1612,6 +1612,7 @@ static void srv_settings_cpy(struct server *srv, struct server *src, int srv_tmp
srv->check.addr = srv->agent.addr = src->check.addr;
srv->check.use_ssl = src->check.use_ssl;
srv->check.port = src->check.port;
srv->check.sni = src->check.sni;
/* Note: 'flags' field has potentially been already initialized. */
srv->flags |= src->flags;
srv->do_check = src->do_check;