]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: add predicates "version_atleast" and "version_before" to cond blocks
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 14:53:26 +0000 (16:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 15:04:45 +0000 (17:04 +0200)
commit0b7c78aa054db909c25563aed77c75313e87d411
treef43c3f384b23f65b19f44594a87dc2c924a1c7dd
parent58ca706e164f1bc4973c7a96240ccae2647177fa
MINOR: config: add predicates "version_atleast" and "version_before" to cond blocks

These predicates respectively verify that the current version is at least
a given version or is before a specific one. The syntax is exactly the one
reported by "haproxy -v", though each component is optional, so both "1.5"
and "2.4-dev18-88910-48" are supported. Missing components equal zero, and
"dev" is below "pre" or "rc", which are both inferior to no such mention
(i.e. they are negative). Thus "2.4-dev18" is older than "2.4-rc1" which
is older than "2.4".
doc/configuration.txt
src/cfgparse.c