Skip to content

Commit

Permalink
Backported sslobject fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 9, 2019
1 parent bc3b5d9 commit 3a8b8c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netius/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,8 @@ def _connect(self, connection):
# and if that's the case an extra wrapping operation is performed
# in order to comply with new indirection/abstraction methods
if not hasattr(ssl, "SSLObject"): return
_socket._sslobj = ssl.SSLObject(_socket._sslobj, owner = _socket)
try: _socket._sslobj = ssl.SSLObject(_socket._sslobj, owner = _socket)
except TypeError: pass

def _ssl_handshake(self, connection):
Client._ssl_handshake(self, connection)
Expand Down

0 comments on commit 3a8b8c3

Please sign in to comment.