mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 01:41:49 -04:00
BUG/MEDIUM: config: check-send-proxy was ignored if SSL was not builtin
Improper insertion within #if/#endif SSL causes the check-send-proxy state not to be automatically enabled if SSL is disabled at build time.
This commit is contained in:
parent
dff5543618
commit
7151633945
1 changed files with 2 additions and 2 deletions
|
|
@ -4696,12 +4696,12 @@ stats_error_parsing:
|
|||
* same as for the production traffic. Otherwise we use raw_sock by
|
||||
* default, unless one is specified.
|
||||
*/
|
||||
#ifdef USE_OPENSSL
|
||||
if (!newsrv->check.port && !is_addr(&newsrv->check.addr)) {
|
||||
#ifdef USE_OPENSSL
|
||||
newsrv->check.use_ssl |= newsrv->use_ssl;
|
||||
#endif
|
||||
newsrv->check.send_proxy |= (newsrv->state & SRV_SEND_PROXY);
|
||||
}
|
||||
#endif
|
||||
/* try to get the port from check.addr if check.port not set */
|
||||
if (!newsrv->check.port)
|
||||
newsrv->check.port = get_host_port(&newsrv->check.addr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue