]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars: Parse optional conditions passed to the set-var actions
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Dec 2021 16:14:38 +0000 (17:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Dec 2021 16:31:57 +0000 (17:31 +0100)
commitbb6bc95b1eb22b7239d4d75016fda8210bd5d492
treeda62371d46bfadcb76848e998dff7b5399f71451
parent51899d251c799f1959190ce04945c232de06b48b
MINOR: vars: Parse optional conditions passed to the set-var actions

This patch adds the parsing of the optional condition parameters that
can be passed to the set-var and set-var-fmt actions (http as well as
tcp). Those conditions will not be taken into account yet in the var_set
function so conditions passed as parameters will not have any effect.
Since actions do not benefit from the parameter preparsing that
converters have, parsing conditions needed to be done by hand.
include/haproxy/action-t.h
src/vars.c