mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
456b297bf0
commit
1ee24745ee
@ -449,7 +449,7 @@ def match_hostname(cert, hostname):
|
||||
% (hostname, ', '.join(map(repr, dnsnames))))
|
||||
elif len(dnsnames) == 1:
|
||||
# python 2.6 does not read subjectAltName, so we do the best we can
|
||||
if sys.version_info[:2] == (2, 6):
|
||||
if sys.version_info[:2] <= (2, 6):
|
||||
if dnsnames[0] == 'calibre-ebook.com':
|
||||
return
|
||||
raise CertificateError("hostname %r "
|
||||
|
Loading…
x
Reference in New Issue
Block a user