mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
90622d4129
commit
a43efc8a5a
@ -355,7 +355,7 @@ class ServerLoop(object):
|
||||
|
||||
def on_ssl_servername(self, socket, server_name, ssl_context):
|
||||
c = self.connection_map.get(socket.fileno())
|
||||
if c.ssl_handshake_done:
|
||||
if getattr(c, 'ssl_handshake_done', False):
|
||||
# We do not allow client initiated SSL renegotiation
|
||||
return ssl.ALERT_DESCRIPTION_NO_RENEGOTIATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user