]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: set current proxy as default value if it is possible
authorThierry FOURNIER <tfournier@haproxy.com>
Fri, 13 Mar 2015 12:38:17 +0000 (13:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Mar 2015 13:10:35 +0000 (14:10 +0100)
commit3caa0399c878a6d19d86c77d4eaadae25dea0eef
treee7dfd800ffa4316633b31c459e75da477bb0e1bb
parentdd6f4b43e23238db85aae22a05335bee7122a435
BUG/MINOR: lua: set current proxy as default value if it is possible

Some fetches uses a proxy name as first parameter. This is used to identify
frontend, backend or table. This first argument is declared as mandatory,
but the documentation says that is optional.

The behavior of the function smp_resolve_args() is to use the current proxy
if it match the required argument.

This patch implements the same behavior in the Lua argument checker for
sample-fetches and sample-converters.
src/hlua.c