mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-20 20:50:44 +00:00
MINOR: filters/htx: Forbid filters when the HTX is enabled on a proxy
For now, the filters are not compatible with the new HTX internal representation of HTTP messages. Thus, for a given proxy, when the option "http-use-htx" is enabled, an error is triggered if any filter is also configured.
This commit is contained in:
parent
473652733a
commit
0c859127f1
@ -334,6 +334,15 @@ flt_check(struct proxy *proxy)
|
||||
err += fconf->ops->check(proxy, fconf);
|
||||
}
|
||||
err += check_legacy_http_comp_flt(proxy);
|
||||
|
||||
if (!LIST_ISEMPTY(&proxy->filter_configs) &&
|
||||
(proxy->options2 & PR_O2_USE_HTX)) {
|
||||
ha_alert("config: %s '%s' : filters cannot be used when "
|
||||
"the HTX internal representation is enabled.\n",
|
||||
proxy_type_str(proxy), proxy->id);
|
||||
err++;
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user