From: Willy Tarreau Date: Fri, 26 Mar 2021 11:08:06 +0000 (+0100) Subject: MINOR: vars: make the var() sample fetch keyword depend on nothing X-Git-Tag: v2.4-dev14~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f26db14dfb1e203268535292ca0839aa81ffd74f;p=thirdparty%2Fhaproxy.git MINOR: vars: make the var() sample fetch keyword depend on nothing This sample fetch doesn't require any L4 client session in practice, as get_var() now checks for the session. This is important to remove this dependency in order to support accessing variables in scope "proc" from anywhere. --- diff --git a/src/vars.c b/src/vars.c index 3c19ec815e..e71d7f1c0a 100644 --- a/src/vars.c +++ b/src/vars.c @@ -864,7 +864,7 @@ REGISTER_POST_DEINIT(vars_deinit); static struct sample_fetch_kw_list sample_fetch_keywords = {ILH, { - { "var", smp_fetch_var, ARG1(1,STR), smp_check_var, SMP_T_STR, SMP_USE_L4CLI }, + { "var", smp_fetch_var, ARG1(1,STR), smp_check_var, SMP_T_STR, SMP_USE_INTRN }, { /* END */ }, }};