aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-04-30 13:41:53 +1200
committerAldo Cortesi <aldo@corte.si>2017-04-30 14:05:45 +1200
commit075d452a6d4e9f21ffd7b3293ec9270ee961917a (patch)
tree7084cb7c4575e81909bc7911442bb221c346252e /mitmproxy/test
parent7ffb2c7981b76ed2e8c467d3db3141b013cccd5b (diff)
downloadmitmproxy-075d452a6d4e9f21ffd7b3293ec9270ee961917a.tar.gz
mitmproxy-075d452a6d4e9f21ffd7b3293ec9270ee961917a.tar.bz2
mitmproxy-075d452a6d4e9f21ffd7b3293ec9270ee961917a.zip
cut: more flexible cut specification based on attribute paths
Also support certificate types, which are converted to ASCII-encoded PEM format.
Diffstat (limited to 'mitmproxy/test')
-rw-r--r--mitmproxy/test/tflow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/test/tflow.py b/mitmproxy/test/tflow.py
index 270021cb..9004df2f 100644
--- a/mitmproxy/test/tflow.py
+++ b/mitmproxy/test/tflow.py
@@ -174,7 +174,7 @@ def tserver_conn():
id=str(uuid.uuid4()),
address=("address", 22),
source_address=("address", 22),
- ip_address=None,
+ ip_address=("192.168.0.1", 22),
cert=None,
timestamp_start=1,
timestamp_tcp_setup=2,
@@ -183,7 +183,7 @@ def tserver_conn():
ssl_established=False,
sni="address",
alpn_proto_negotiated=None,
- tls_version=None,
+ tls_version="TLSv1.2",
via=None,
))
c.reply = controller.DummyReply()