]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp-check: use the server's service port as a fallback
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 19 Mar 2018 11:22:41 +0000 (12:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Mar 2018 12:55:55 +0000 (13:55 +0100)
commit2f3a56b4ff207de37bdd944993a88bca781ad243
tree06ea49db62cea353409e67cea48d31f379755172
parent248f1173f272b10bf7ed2aa7061bfafd34160f70
BUG/MINOR: tcp-check: use the server's service port as a fallback

When running tcp-check scripts, one must ensure we can establish a tcp
connection first.
When doing this action, HAProxy needs a TCP port configured either on
the server or on the check itself or on the connect rule itself.
For some reasons, the connect code did not evaluate the service port on
the server structure...

this patch fixes this error.

Backport status: 1.8
src/checks.c