[MINOR] acl: don't complain anymore when using L7 acls in TCP
Since TCP can now check contents using L7 acls, we must not
complain anymore.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index ff32726..3bdb278 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -609,17 +609,16 @@
// cond->line = linenum;
if (cond)
curpx->acl_requires |= cond->requires;
- if (cond && cond->requires & (ACL_USE_RTR_ANY | ACL_USE_L7_ANY)) {
+ if (cond && (cond->requires & ACL_USE_RTR_ANY)) {
struct acl *acl;
const char *name;
- acl = cond_find_require(cond, ACL_USE_RTR_ANY|ACL_USE_L7_ANY);
+ acl = cond_find_require(cond, ACL_USE_RTR_ANY);
name = acl ? acl->name : "(unknown)";
retlen = snprintf(err, errlen,
- "acl '%s' involves some %s criteria which will be ignored.",
- name,
- (acl->requires & ACL_USE_RTR_ANY) ? "response-only" : "layer 7");
+ "acl '%s' involves some response-only criteria which will be ignored.",
+ name);
warn++;
}
rule = (struct tcp_rule *)calloc(1, sizeof(*rule));