From c6896d7392efe7147f1e08447fd8861be9eca66c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 3 Apr 2012 11:28:07 +1200 Subject: [PATCH] Add ClientConnect info to details view. --- libmproxy/console/flowdetailview.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py index 7391347ed..6c5e7fe20 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)) + + 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 - -