From 0d0a3a51dfd8990b2dfd47c32cb070950b606d5c Mon Sep 17 00:00:00 2001 From: Brady Law Date: Fri, 21 Oct 2016 16:47:19 -0700 Subject: [PATCH] The first argument should be the filter, then the flow. --- examples/flowfilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/flowfilter.py b/examples/flowfilter.py index 80a153daf..34d97275b 100644 --- a/examples/flowfilter.py +++ b/examples/flowfilter.py @@ -10,7 +10,7 @@ class Filter: self.filter = flowfilter.parse(spec) def response(self, flow): - if flowfilter.match(flow, self.filter): + if flowfilter.match(self.filter, flow): print("Flow matches filter:") print(flow)