]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua: Remove tests on the option 'http-use-htx' to reject TCP applets
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 13:02:04 +0000 (15:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
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.

src/hlua.c

index 23d2aa040a30ab80fac9476c8d656d1ff9dbd36a..0163b95dee8e1fbbeb1edb4e021771d820ebf97f 100644 (file)
@@ -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;
        }