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