I'm losing the logic of this condition, but
this is a copy of the original, so it should work
This commit is contained in:
parent
7815fe8219
commit
c3ef6cfbbc
|
@ -131,7 +131,7 @@ class NBCommonClient(CommonClient):
|
|||
|
||||
def _on_connected(self):
|
||||
self.connected = 'tcp'
|
||||
if self._Ssl or self.Connection.getPort() in (5223, 443):
|
||||
if self._Ssl is None or self.Connection.getPort() in (5223, 443) or self._Ssl:
|
||||
try:
|
||||
transports_nb.NonBlockingTLS().PlugIn(self, now=1)
|
||||
self.connected = 'ssl'
|
||||
|
|
Loading…
Reference in New Issue