Merge pull request #898 from lilydjwg/master

[console] always show connection info in Details tab
This commit is contained in:
Maximilian Hils 2016-01-26 11:31:37 +01:00
commit 798bd413e8

View File

@ -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 = [