aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addons/core_option_validation.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/addons/core_option_validation.py')
-rw-r--r--mitmproxy/addons/core_option_validation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/addons/core_option_validation.py b/mitmproxy/addons/core_option_validation.py
index fd5f2788..baeee764 100644
--- a/mitmproxy/addons/core_option_validation.py
+++ b/mitmproxy/addons/core_option_validation.py
@@ -4,12 +4,14 @@
"""
from mitmproxy import exceptions
from mitmproxy import platform
+from mitmproxy import ctx
from mitmproxy.net import server_spec
from mitmproxy.utils import human
class CoreOptionValidation:
- def configure(self, opts, updated):
+ def configure(self, updated):
+ opts = ctx.options
if opts.add_upstream_certs_to_client_chain and not opts.upstream_cert:
raise exceptions.OptionsError(
"The no-upstream-cert and add-upstream-certs-to-client-chain "