diff --git a/examples/contrib/har_dump.py b/examples/contrib/har_dump.py index c932154f9..14ecad701 100644 --- a/examples/contrib/har_dump.py +++ b/examples/contrib/har_dump.py @@ -154,7 +154,7 @@ def response(flow: mitmproxy.http.HTTPFlow): } 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)