From 52c81c287e2d8326d89611893281951490c9f4dd Mon Sep 17 00:00:00 2001 From: KORraNpl Date: Wed, 11 Aug 2021 20:32:39 +0200 Subject: [PATCH] Fix DeprecationWarning in har_dump.py --- examples/contrib/har_dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)