mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #898 from lilydjwg/master
[console] always show connection info in Details tab
This commit is contained in:
commit
798bd413e8
@ -20,7 +20,7 @@ def flowdetails(state, flow):
|
|||||||
req = flow.request
|
req = flow.request
|
||||||
resp = flow.response
|
resp = flow.response
|
||||||
|
|
||||||
if sc:
|
if sc is not None:
|
||||||
text.append(urwid.Text([("head", "Server Connection:")]))
|
text.append(urwid.Text([("head", "Server Connection:")]))
|
||||||
parts = [
|
parts = [
|
||||||
["Address", "%s:%s" % sc.address()],
|
["Address", "%s:%s" % sc.address()],
|
||||||
@ -76,7 +76,7 @@ def flowdetails(state, flow):
|
|||||||
common.format_keyvals(parts, key="key", val="text", indent=4)
|
common.format_keyvals(parts, key="key", val="text", indent=4)
|
||||||
)
|
)
|
||||||
|
|
||||||
if cc:
|
if cc is not None:
|
||||||
text.append(urwid.Text([("head", "Client Connection:")]))
|
text.append(urwid.Text([("head", "Client Connection:")]))
|
||||||
|
|
||||||
parts = [
|
parts = [
|
||||||
|
Loading…
Reference in New Issue
Block a user