mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
MINOR: lua: Lua tcp action are not final action
Actually, the registered lua actions with "tcp-request lua" and "tcp-response lua" are final actions. This patch change the action type type and permit to continue the evaluation of tcp-* processing after the evaluation of the lua actions.
This commit is contained in:
parent
561a0f989d
commit
79318d79ba
@ -4391,7 +4391,7 @@ static int tcp_req_action_register_lua(const char **args, int *cur_arg, struct p
|
|||||||
{
|
{
|
||||||
if (!hlua_parse_rule(args, cur_arg, px, (struct hlua_rule **)&rule->act_prm.data, err))
|
if (!hlua_parse_rule(args, cur_arg, px, (struct hlua_rule **)&rule->act_prm.data, err))
|
||||||
return 0;
|
return 0;
|
||||||
rule->action = TCP_ACT_CUSTOM;
|
rule->action = TCP_ACT_CUSTOM_CONT;
|
||||||
rule->action_ptr = hlua_tcp_req_act_wrapper;
|
rule->action_ptr = hlua_tcp_req_act_wrapper;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -4402,7 +4402,7 @@ static int tcp_res_action_register_lua(const char **args, int *cur_arg, struct p
|
|||||||
{
|
{
|
||||||
if (!hlua_parse_rule(args, cur_arg, px, (struct hlua_rule **)&rule->act_prm.data, err))
|
if (!hlua_parse_rule(args, cur_arg, px, (struct hlua_rule **)&rule->act_prm.data, err))
|
||||||
return 0;
|
return 0;
|
||||||
rule->action = TCP_ACT_CUSTOM;
|
rule->action = TCP_ACT_CUSTOM_CONT;
|
||||||
rule->action_ptr = hlua_tcp_res_act_wrapper;
|
rule->action_ptr = hlua_tcp_res_act_wrapper;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user