]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: check: Update server address and port to execute an external check
authorChristopher Faulet <cfaulet@haproxy.com>
Sun, 26 Apr 2020 07:50:31 +0000 (09:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:13 +0000 (09:39 +0200)
commitaaae9a0e9952bef30bb0da0eecd714f2db64d545
treeedbd3227bacee4cfaf10eb12f7cb57972478c4e0
parent8d945d6dd94fe6d46a9720b0be6a8a15ec5fe549
BUG/MINOR: check: Update server address and port to execute an external check

Server address and port may change at runtime. So the address and port passed as
arguments and as environment variables when an external check is executed must
be updated. The current number of connections on the server was already updated
before executing the command. So the same mechanism is used for the server
address and port. But in addition, command arguments are also updated.

This patch must be backported to all stable versions. It should fix the
issue #577.
include/types/checks.h
src/checks.c