summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y6
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y
index 89177a7..01d34fa 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -237,8 +237,14 @@ r_args:
}
| r_args FILTER filter {
$$ = $1;
+ if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice");
$$->filter = $3;
}
+ | r_args where_filter {
+ $$ = $1;
+ if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice");
+ $$->filter = $2;
+ }
| r_args ALL {
$$ = $1;
$$->verbose = 1;