mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 18:57:22 +00:00
The first argument should be the filter, then the flow.
This commit is contained in:
parent
4ce828401f
commit
0d0a3a51df
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue