aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-03-12 23:55:56 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-03-12 23:55:56 +0100
commit4604c25c6055a37e5f25a238d2a089759bd5d98a (patch)
tree792cba37be5338ee8287f903d6817aa9d46ba559
parentd3a55cd3f064ebfbb4be6ca5655af3736aebefa4 (diff)
downloadmitmproxy-4604c25c6055a37e5f25a238d2a089759bd5d98a.tar.gz
mitmproxy-4604c25c6055a37e5f25a238d2a089759bd5d98a.tar.bz2
mitmproxy-4604c25c6055a37e5f25a238d2a089759bd5d98a.zip
fix #1025, refs #983
-rw-r--r--mitmproxy/protocol/tls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/protocol/tls.py b/mitmproxy/protocol/tls.py
index 6913396d..f014142b 100644
--- a/mitmproxy/protocol/tls.py
+++ b/mitmproxy/protocol/tls.py
@@ -562,5 +562,6 @@ class TlsLayer(Layer):
# Some applications don't consider the CN and expect the hostname to be in the SANs.
# For example, Thunderbird 38 will display a warning if the remote host is only the CN.
- sans.add(host)
+ if host:
+ sans.add(host)
return self.config.certstore.get_cert(host, list(sans))