From: Christopher Faulet Date: Wed, 7 Nov 2018 13:09:32 +0000 (+0100) Subject: MINOR: filters/htx: Forbid filters when the HTX is enabled on a proxy X-Git-Tag: v1.9-dev7~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c859127f10d2e77a3b3ab64fa35a57741475c85;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/filters.c b/src/filters.c index 734058c5ce..8bb9a904d3 100644 --- a/src/filters.c +++ b/src/filters.c @@ -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; }