From 0f17a9b510124bbdd7d75f438118c8d6ad3f9fa1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 5 Apr 2019 10:11:38 +0200 Subject: [PATCH] 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. --- src/filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filters.c b/src/filters.c index 1a7727669..95ba7728b 100644 --- a/src/filters.c +++ b/src/filters.c @@ -389,7 +389,7 @@ flt_stream_add_filter(struct stream *s, struct flt_conf *fconf, unsigned int fla { 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; f = pool_alloc(pool_head_filter);