diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-04-03 11:28:07 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-04-03 11:28:07 +1200 |
commit | c6896d7392efe7147f1e08447fd8861be9eca66c (patch) | |
tree | af5c528494eaf1356671d7e05800a0d504fe1f00 /libmproxy/console | |
parent | 61fab03b24bdb53d203eb7fb68ba891874d11114 (diff) | |
download | mitmproxy-c6896d7392efe7147f1e08447fd8861be9eca66c.tar.gz mitmproxy-c6896d7392efe7147f1e08447fd8861be9eca66c.tar.bz2 mitmproxy-c6896d7392efe7147f1e08447fd8861be9eca66c.zip |
Add ClientConnect info to details view.
Diffstat (limited to 'libmproxy/console')
-rw-r--r-- | libmproxy/console/flowdetailview.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py index 7391347e..6c5e7fe2 100644 --- a/libmproxy/console/flowdetailview.py +++ b/libmproxy/console/flowdetailview.py @@ -88,6 +88,15 @@ class FlowDetailsView(urwid.ListBox): ] ) text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) - return text + if self.flow.request.client_conn: + text.append(urwid.Text([("head", "Client Connection:")])) + cc = self.flow.request.client_conn + parts = [ + ["Address", "%s:%s"%tuple(cc.address)], + ["Requests", "%s"%cc.requestcount], + ["Closed", "%s"%cc.close], + ] + text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) + return text |