cmd: mapfilter: support rejecting mappings

breaking config
This commit is contained in:
Christian Schwarz
2017-09-16 19:42:42 +02:00
parent e70b6f3071
commit 36b66f6fd7
5 changed files with 59 additions and 27 deletions

View File

@@ -72,7 +72,7 @@ func doTestDatasetMapFilter(cmd *cobra.Command, args []string) {
os.Exit(1)
}
if mf.filterOnly {
if mf.filterMode{
pass, err := mf.Filter(ip)
if err != nil {
log.Printf("error evaluating filter: %s", err)