diff --git a/src/hlua.c b/src/hlua.c index dd9fc004d..98c434ae2 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -7714,7 +7714,7 @@ static enum act_parse_ret action_register_service_tcp(const char **args, int *cu { struct hlua_function *fcn = rule->kw->private; - if (px->options2 & PR_O2_USE_HTX) { + 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"); return ACT_RET_PRS_ERR; } diff --git a/src/proxy.c b/src/proxy.c index be810598a..8c4b2f26f 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -111,7 +111,7 @@ const struct cfg_opt cfg_opts2[] = { "http-use-proxy-header", PR_O2_USE_PXHDR, PR_CAP_FE, 0, PR_MODE_HTTP }, { "http-pretend-keepalive", PR_O2_FAKE_KA, PR_CAP_BE, 0, PR_MODE_HTTP }, { "http-no-delay", PR_O2_NODELAY, PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP }, - { "http-use-htx", PR_O2_USE_HTX, PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP }, + { "http-use-htx", PR_O2_USE_HTX, PR_CAP_FE|PR_CAP_BE, 0, 0 }, { NULL, 0, 0, 0 } };