mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: config: disable http-reuse on TCP proxies
Louis Chanouha reported an inappropriate warning when http-reuse is present in a defaults section while a TCP proxy accidently inherits it and finds a conflict with other options like the use of the PROXY protocol. To fix this patch removes the http-reuse option for TCP proxies. This fix needs to be backported to 1.8, 1.7 and possibly 1.6.
This commit is contained in:
parent
e2b10bf491
commit
46deab6e64
@ -8507,6 +8507,9 @@ int check_config_validity()
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((curproxy->mode != PR_MODE_HTTP) && (curproxy->options & PR_O_REUSE_MASK) != PR_O_REUSE_NEVR)
|
||||
curproxy->options &= ~PR_O_REUSE_MASK;
|
||||
|
||||
if ((curproxy->options & PR_O_REUSE_MASK) != PR_O_REUSE_NEVR) {
|
||||
if ((curproxy->conn_src.opts & CO_SRC_TPROXY_MASK) == CO_SRC_TPROXY_CLI ||
|
||||
(curproxy->conn_src.opts & CO_SRC_TPROXY_MASK) == CO_SRC_TPROXY_CIP ||
|
||||
|
Loading…
Reference in New Issue
Block a user