Fix DeprecationWarning in har_dump.py

This commit is contained in:
KORraNpl 2021-08-11 20:32:39 +02:00
parent ab6f1ebb44
commit 52c81c287e

View File

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