aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
author依云 <lilydjwg@gmail.com>2016-01-26 18:14:19 +0800
committer依云 <lilydjwg@gmail.com>2016-01-26 18:14:19 +0800
commitca0f310211e619226ea3187fe3977607537ea501 (patch)
tree77447ec32e62c12d77983bd36659840c698d5109 /libmproxy
parenta60810cc2c0ecf7ae9b630dbe5d9f3bb0c287a41 (diff)
downloadmitmproxy-ca0f310211e619226ea3187fe3977607537ea501.tar.gz
mitmproxy-ca0f310211e619226ea3187fe3977607537ea501.tar.bz2
mitmproxy-ca0f310211e619226ea3187fe3977607537ea501.zip
[console] always show connection info in Details tab
Connections become false values when it's finished. Check if it's None when trying to show address info. Fixes #886.
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/console/flowdetailview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py
index 40769c95..394ad217 100644
--- a/libmproxy/console/flowdetailview.py
+++ b/libmproxy/console/flowdetailview.py
@@ -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 = [