The first argument should be the filter, then the flow.

This commit is contained in:
Brady Law 2016-10-21 16:47:19 -07:00
parent 4ce828401f
commit 0d0a3a51df
1 changed files with 1 additions and 1 deletions

View File

@ -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)