aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tls_passthrough.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-08 19:57:57 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-08 19:57:57 -0700
commit5d2b7c52f9c33e84be5c4330b09b0f2a5ad869e2 (patch)
tree01d2f83583f0a47706def85b9ed82ed045d5f4b6 /examples/tls_passthrough.py
parent7c67faa8da39f428d1860bccae806137943b66a6 (diff)
downloadmitmproxy-5d2b7c52f9c33e84be5c4330b09b0f2a5ad869e2.tar.gz
mitmproxy-5d2b7c52f9c33e84be5c4330b09b0f2a5ad869e2.tar.bz2
mitmproxy-5d2b7c52f9c33e84be5c4330b09b0f2a5ad869e2.zip
move script context to mitmproxy.ctx
Diffstat (limited to 'examples/tls_passthrough.py')
-rw-r--r--examples/tls_passthrough.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tls_passthrough.py b/examples/tls_passthrough.py
index 374020e7..20e8f9be 100644
--- a/examples/tls_passthrough.py
+++ b/examples/tls_passthrough.py
@@ -135,7 +135,7 @@ def next_layer(next_layer):
next_layer.__class__ = TlsFeedback
else:
# We don't intercept - reply with a pass-through layer and add a "skipped" entry.
- mitmproxy.log("TLS passthrough for %s" % repr(next_layer.server_conn.address), "info")
+ mitmproxy.ctx.log("TLS passthrough for %s" % repr(next_layer.server_conn.address), "info")
next_layer_replacement = RawTCPLayer(next_layer.ctx, ignore=True)
next_layer.reply.send(next_layer_replacement)
tls_strategy.record_skipped(server_address)