fix tcp.Address leftovers

this fixes the issue described in https://github.com/mitmproxy/mitmproxy/issues/2119#issuecomment-285067292
This commit is contained in:
Maximilian Hils 2017-03-08 16:18:34 +01:00 committed by GitHub
parent cb6240974d
commit 927b5707fe

View File

@ -147,7 +147,7 @@ def response(flow):
} }
if flow.server_conn.connected(): if flow.server_conn.connected():
entry["serverIPAddress"] = str(flow.server_conn.ip_address.address[0]) entry["serverIPAddress"] = str(flow.server_conn.ip_address[0])
HAR["log"]["entries"].append(entry) HAR["log"]["entries"].append(entry)