aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/proxy/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/proxy/config.py b/mitmproxy/proxy/config.py
index e98faabf..982afb75 100644
--- a/mitmproxy/proxy/config.py
+++ b/mitmproxy/proxy/config.py
@@ -23,7 +23,7 @@ class HostMatcher:
if self.handle in ["ignore", "tcp"]:
return any(rex.search(host) for rex in self.regexes)
else: # self.handle == "allow"
- return any(not rex.search(host) for rex in self.regexes)
+ return not any(rex.search(host) for rex in self.regexes)
def __bool__(self):
return bool(self.patterns)