diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-13 18:17:09 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-13 18:17:09 -0700 |
commit | 63c6660895c83967c5d93499bcda3e233f722ded (patch) | |
tree | dae83636f6fa7b40e2822197b32963c8d2195417 /examples/tls_passthrough.py | |
parent | 804efe9d38449d484a37430459d1af45c7fcf0cf (diff) | |
download | mitmproxy-63c6660895c83967c5d93499bcda3e233f722ded.tar.gz mitmproxy-63c6660895c83967c5d93499bcda3e233f722ded.tar.bz2 mitmproxy-63c6660895c83967c5d93499bcda3e233f722ded.zip |
update examples, tests, docs
Diffstat (limited to 'examples/tls_passthrough.py')
-rw-r--r-- | examples/tls_passthrough.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/tls_passthrough.py b/examples/tls_passthrough.py index 0c6d450d..50aab65b 100644 --- a/examples/tls_passthrough.py +++ b/examples/tls_passthrough.py @@ -24,6 +24,7 @@ from __future__ import (absolute_import, print_function, division) import collections import random +import sys from enum import Enum from mitmproxy.exceptions import TlsProtocolException @@ -110,9 +111,9 @@ class TlsFeedback(TlsLayer): # inline script hooks below. -def start(context, argv): - if len(argv) == 2: - context.tls_strategy = ProbabilisticStrategy(float(argv[1])) +def start(context): + if len(sys.argv) == 2: + context.tls_strategy = ProbabilisticStrategy(float(sys.argv[1])) else: context.tls_strategy = ConservativeStrategy() |