mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-25 12:28:01 +00:00
MINOR: hlua: Remove tests on the option 'http-use-htx' to reject TCP applets
TCP applets are now forbidden for all HTTP proxies because all of them use the HTX mode. So we don't rely anymore on the flag PR_O2_USE_HTX to do so.
This commit is contained in:
parent
60d29b37b2
commit
280f85b153
@ -7724,8 +7724,8 @@ static enum act_parse_ret action_register_service_tcp(const char **args, int *cu
|
||||
{
|
||||
struct hlua_function *fcn = rule->kw->private;
|
||||
|
||||
if (px->mode == PR_MODE_HTTP && (px->options2 & PR_O2_USE_HTX)) {
|
||||
memprintf(err, "Lua services cannot be used when the HTX internal representation is enabled");
|
||||
if (px->mode == PR_MODE_HTTP) {
|
||||
memprintf(err, "Lua TCP services cannot be used on HTTP proxies");
|
||||
return ACT_RET_PRS_ERR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user