The first argument should be the filter, then the flow.
This commit is contained in:
parent
4ce828401f
commit
0d0a3a51df
|
@ -10,7 +10,7 @@ class Filter:
|
||||||
self.filter = flowfilter.parse(spec)
|
self.filter = flowfilter.parse(spec)
|
||||||
|
|
||||||
def response(self, flow):
|
def response(self, flow):
|
||||||
if flowfilter.match(flow, self.filter):
|
if flowfilter.match(self.filter, flow):
|
||||||
print("Flow matches filter:")
|
print("Flow matches filter:")
|
||||||
print(flow)
|
print(flow)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue