projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8948fb
)
Revert "MINOR: filter: "filter" requires TCP or HTTP mode"
author
Aurelien DARRAGON
<adarragon@haproxy.com>
Fri, 17 Nov 2023 17:05:25 +0000
(18:05 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000
(11:16 +0100)
This reverts commit
f9422551cd2b205332e4ea4e6195ed986e0e198a
since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.
src/filters.c
patch
|
blob
|
history
diff --git
a/src/filters.c
b/src/filters.c
index
14ab7f8
..
e55adee
100644
(file)
--- a/
src/filters.c
+++ b/
src/filters.c
@@
-201,11
+201,6
@@
parse_filter(char **args, int section_type, struct proxy *curpx,
file, line, args[0]);
return -1;
}
- if (curpx->mode != PR_MODE_TCP && curpx->mode != PR_MODE_HTTP) {
- memprintf(err, "parsing [%s:%d] : '%s' requires TCP or HTTP mode.",
- file, line, args[0]);
- return -1;
- }
if (strcmp(args[0], "filter") == 0) {
struct flt_kw *kw;
int cur_arg;