Merge pull request #4747 from KORraNpl/korran/fix_DeprecationWarning_in_har_dump.py

Fix DeprecationWarning in har_dump.py
This commit is contained in:
Thomas Kriechbaumer 2021-08-13 22:42:25 +02:00 committed by GitHub
commit 92518f3b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)