mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-29 14:28:03 +00:00
MINOR: filters/htx: Use stream flags instead of px mode to instanciate a filter
In the function flt_stream_add_filter(), if the HTX is enabled, before attaching a filter to a stream, we test if the filter can handle it or not. If not, the filter is ignored. Before the proxy mode was tested. Now we test if the stream is an HTX stream or not.
This commit is contained in:
parent
eca8854555
commit
0f17a9b510
@ -389,7 +389,7 @@ flt_stream_add_filter(struct stream *s, struct flt_conf *fconf, unsigned int fla
|
|||||||
{
|
{
|
||||||
struct filter *f;
|
struct filter *f;
|
||||||
|
|
||||||
if ((strm_fe(s)->options2 & PR_O2_USE_HTX) && !(fconf->flags & FLT_CFG_FL_HTX))
|
if (IS_HTX_STRM(s) && !(fconf->flags & FLT_CFG_FL_HTX))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
f = pool_alloc(pool_head_filter);
|
f = pool_alloc(pool_head_filter);
|
||||||
|
Loading…
Reference in New Issue
Block a user