aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-08-09 23:43:47 +0530
committerShadab Zafar <dufferzafar0@gmail.com>2016-08-15 12:00:23 +0530
commit9aa230707d4868d02df2cdc47abf4bbbcab40ba8 (patch)
treeb9ab159c275e1b51fbcb35154bcf5fea141b686d
parent7de48fc1977d02936614e18c568816717b55f889 (diff)
downloadmitmproxy-9aa230707d4868d02df2cdc47abf4bbbcab40ba8.tar.gz
mitmproxy-9aa230707d4868d02df2cdc47abf4bbbcab40ba8.tar.bz2
mitmproxy-9aa230707d4868d02df2cdc47abf4bbbcab40ba8.zip
Add serverIPAddress field
-rw-r--r--examples/har_dump.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/har_dump.py b/examples/har_dump.py
index 65cff616..6903608d 100644
--- a/examples/har_dump.py
+++ b/examples/har_dump.py
@@ -132,6 +132,9 @@ def response(flow):
"params": name_value(flow.request.urlencoded_form)
}
+ if flow.server_conn:
+ entry["serverIPAddress"] = str(flow.server_conn.ip_address.address[0])
+
HAR["log"]["entries"].append(entry)