diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-16 09:59:40 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-16 10:15:38 +0530 |
commit | fea4435dacf09797dd018f1dcf9f8280a54a2ce6 (patch) | |
tree | ca819116b5c5225b8e03d897b6b8cbbed068e8cc /mitmproxy/filt.py | |
parent | 5082dc6cbdf8b5964ab47747f9b834f47a13fddc (diff) | |
download | mitmproxy-fea4435dacf09797dd018f1dcf9f8280a54a2ce6.tar.gz mitmproxy-fea4435dacf09797dd018f1dcf9f8280a54a2ce6.tar.bz2 mitmproxy-fea4435dacf09797dd018f1dcf9f8280a54a2ce6.zip |
Allow DummyFlow to match ~e, ~src and ~dst
Diffstat (limited to 'mitmproxy/filt.py')
-rw-r--r-- | mitmproxy/filt.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mitmproxy/filt.py b/mitmproxy/filt.py index 51e9cc30..f67698e5 100644 --- a/mitmproxy/filt.py +++ b/mitmproxy/filt.py @@ -76,7 +76,6 @@ class FErr(_Action): code = "e" help = "Match error" - @only(HTTPFlow, TCPFlow) def __call__(self, f): return True if f.error else False @@ -326,7 +325,6 @@ class FSrc(_Rex): help = "Match source address" is_binary = False - @only(HTTPFlow, TCPFlow) def __call__(self, f): return f.client_conn.address and self.re.search(repr(f.client_conn.address)) @@ -336,7 +334,6 @@ class FDst(_Rex): help = "Match destination address" is_binary = False - @only(HTTPFlow, TCPFlow) def __call__(self, f): return f.server_conn.address and self.re.search(repr(f.server_conn.address)) |