aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/options.py
diff options
context:
space:
mode:
authorMatt Weidner <matt.weidner@gmail.com>2017-07-19 22:17:16 -0500
committerMatt Weidner <matt.weidner@gmail.com>2017-07-27 21:11:37 -0500
commitf26ea82b3c1b6eb994967ed62a152354a56cb8b6 (patch)
treec72c55c7d1048056ad03270d0b0ce28557dcfca1 /mitmproxy/options.py
parent35d16a4bcaddd7c249dc44b94be60e34ed476415 (diff)
downloadmitmproxy-f26ea82b3c1b6eb994967ed62a152354a56cb8b6.tar.gz
mitmproxy-f26ea82b3c1b6eb994967ed62a152354a56cb8b6.tar.bz2
mitmproxy-f26ea82b3c1b6eb994967ed62a152354a56cb8b6.zip
Add intercetp toggle feature.
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r--mitmproxy/options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index 954db7e8..8102efe7 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -377,6 +377,11 @@ class Options(optmanager.OptManager):
)
self.add_option(
+ "intercept_active", bool, False,
+ "Intercept toggle"
+ )
+
+ self.add_option(
"intercept", Optional[str], None,
"Intercept filter expression."
)