]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: connection: make sure to correctly tag local PROXY connections
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Feb 2020 14:10:00 +0000 (15:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Feb 2020 09:31:37 +0000 (10:31 +0100)
commit7f26391bc51ad56c31480d03f56e1db604f1c617
tree12256bbd67faa1475f2e5fd6d7b320e58fb9e49b
parentd1c847abbc3c26fc8dd1dd0624bf8a26e045e8ed
BUG/MINOR: connection: make sure to correctly tag local PROXY connections

As reported in issue #511, when sending an outgoing local connection
(e.g. health check) we must set the "local" tag and not a "proxy" tag.
The issue comes from historic support on v1 which required to steal the
address on the outgoing connection for such ones, creating confusion in
the v2 code which believes it sees the incoming connection.

In order not to risk to break existing setups which might rely on seeing
the LB's address in the connection's source field, let's just change the
connection type from proxy to local and keep the addresses. The protocol
spec states that for local, the addresses must be ignored anyway.

This problem has always existed, this can be backported as far as 1.5,
though it's probably not a good idea to change such setups, thus maybe
2.0 would be more reasonable.
src/connection.c