mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Add ClientConnect info to details view.
This commit is contained in:
parent
61fab03b24
commit
c6896d7392
@ -88,6 +88,15 @@ class FlowDetailsView(urwid.ListBox):
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
text.extend(common.format_keyvals(parts, key="key", val="text", indent=4))
|
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
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user