When accept_proxy is set, the accept-proxy setting is set on all backends.
TCP backends can opt out by using the flag disable_tcp_accept_proxy, which defaults to false. This means without configuring explicitly, TCP backends should also have the accept-proxy declaration.
The haproxy.config.erb file did not include the correct value for accept-proxy on non-SSL backends. It now does. The spec test was only checking SSL backends so far. Now it's checking a mix.
When
accept_proxy
is set, theaccept-proxy
setting is set on all backends.TCP backends can opt out by using the flag
disable_tcp_accept_proxy
, which defaults tofalse
. This means without configuring explicitly, TCP backends should also have theaccept-proxy
declaration.The
haproxy.config.erb
file did not include the correct value foraccept-proxy
on non-SSL backends. It now does. The spec test was only checking SSL backends so far. Now it's checking a mix.