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
|
||||
resp = flow.response
|
||||
|
||||
if sc:
|
||||
if sc is not None:
|
||||
text.append(urwid.Text([("head", "Server Connection:")]))
|
||||
parts = [
|
||||
["Address", "%s:%s" % sc.address()],
|
||||
@ -76,7 +76,7 @@ def flowdetails(state, flow):
|
||||
common.format_keyvals(parts, key="key", val="text", indent=4)
|
||||
)
|
||||
|
||||
if cc:
|
||||
if cc is not None:
|
||||
text.append(urwid.Text([("head", "Client Connection:")]))
|
||||
|
||||
parts = [
|
||||
|
Loading…
Reference in New Issue
Block a user