]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Support expression to set the port
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Mar 2020 13:19:03 +0000 (15:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commitb7d30098f355f4e7d72f3dbca1835924d625c912
tree63dbfd51efca3c29f33aeea13cdbceef3e4d320a
parent5c28874a6900bba948da7ed7e115188b8d3b0b58
MEDIUM: checks: Support expression to set the port

Since we have a session attached to tcp-check healthchecks, It is possible use
sample expression and variables. In addition, it is possible to add tcp-check
set-var rules to define custom variables. So, now, a sample expression can be
used to define the port to use to establish a connection for a tcp-check connect
rule. For instance:

    tcp-check set-var(check.port) int(8888)
    tcp-check connect port var(check.port)
doc/configuration.txt
include/types/checks.h
src/checks.c