aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/options.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-02-24 17:19:42 +1300
committerAldo Cortesi <aldo@nullcube.com>2018-02-24 18:33:15 +1300
commitf49aae312fb0df3c4dd484c6790c8a558fe540e8 (patch)
treefd9ea9513b09ed8c62eedc47e380ba051af0fd58 /mitmproxy/options.py
parent93c49c47ae42a89c3c6b30988ea553df4ff19ab4 (diff)
downloadmitmproxy-f49aae312fb0df3c4dd484c6790c8a558fe540e8.tar.gz
mitmproxy-f49aae312fb0df3c4dd484c6790c8a558fe540e8.tar.bz2
mitmproxy-f49aae312fb0df3c4dd484c6790c8a558fe540e8.zip
Move intercept options to addon
As part of this, we zap an un-needed console command and use a boolean toggle setter instead. Also remove an ancient regression test that breaks encapsulation.
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r--mitmproxy/options.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index 139b197f..05332b3f 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -58,8 +58,6 @@ class Options(optmanager.OptManager):
# because they're used by more than one addon, or because they're
# embedded in the core code somehow.
default_contentview = None # type: str
- intercept = None # type: Optional[str]
- intercept_active = None # type: bool
proxyauth = None # type: Optional[str]
showhost = None # type: bool
verbosity = None # type: str
@@ -252,16 +250,6 @@ class Options(optmanager.OptManager):
)
self.add_option(
- "intercept_active", bool, False,
- "Intercept toggle"
- )
-
- self.add_option(
- "intercept", Optional[str], None,
- "Intercept filter expression."
- )
-
- self.add_option(
"view_filter", Optional[str], None,
"Limit which flows are displayed."
)