aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/filt.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mitmproxy/filt.py b/mitmproxy/filt.py
index 8b647b22..6bdc1f03 100644
--- a/mitmproxy/filt.py
+++ b/mitmproxy/filt.py
@@ -80,6 +80,14 @@ class FErr(_Action):
return True if f.error else False
+class FMarked(_Action):
+ code = "marked"
+ help = "Match marked flows"
+
+ def __call__(self, f):
+ return f.marked
+
+
class FHTTP(_Action):
code = "http"
help = "Match HTTP flows"
@@ -398,6 +406,7 @@ filt_unary = [
FAsset,
FErr,
FHTTP,
+ FMarked,
FReq,
FResp,
FTCP,