[MEDIUM] fix server health checks source address selection
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Jan 2008 17:40:14 +0000 (18:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Jan 2008 17:40:14 +0000 (18:40 +0100)
commite8c66afd41d44c6ddbe42fa1b2893b829781b32b
tree3699d4dcdff06847e02875d9d82bea1653c0c484
parentc297b52df5a9599c27428edf5d7ce3ac34f45a47
[MEDIUM] fix server health checks source address selection

The source address selection for health checks did not consider
the new transparent proxy method. Rely on the same unified function
as the other connect() calls.

This patch also fixes a bug by which the proxy's source address was
ignored if cttproxy was used.
include/proto/proto_tcp.h
src/backend.c
src/checks.c
src/proto_tcp.c