]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample/arg: Be able to resolve args found in defaults sections
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Oct 2021 16:48:05 +0000 (18:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Oct 2021 12:12:19 +0000 (14:12 +0200)
commit37a9e21a3a1dd9be072c8c865813d82ada9c0080
treeaa159979abf9e3709b41c3005e928fea6ae832a0
parentdfd10ab5ee023a9d67ec159752249f24f5177f93
MINOR: sample/arg: Be able to resolve args found in defaults sections

It is not yet used but thanks to this patch, it will be possible to resolve
arguments found in defaults sections. However, there is some restrictions:

  * For FE (frontend) or BE (backend) arguments, if the proxy is explicity
    defined, there is no change. But for implicit proxy (not specified), the
    argument points on the default proxy. when a sample fetch using this
    kind of argument is evaluated, the default proxy replaced by the current
    one.

  * For SRV (server) and TAB (stick-table)arguments, the proxy must always
    be specified. Otherwise an error is reported.

This patch is mandatory to support TCP/HTTP rules in defaults sections.
src/backend.c
src/frontend.c
src/sample.c