don't force tls on ports 5223 and 443

This commit is contained in:
Dimitur Kirov 2006-08-22 08:13:23 +00:00
parent bbe93c5b86
commit 3b447544de
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class NBCommonClient(CommonClient):
def _on_connected(self): def _on_connected(self):
self.connected = 'tcp' self.connected = 'tcp'
if (self._Ssl is None and self.Connection.getPort() in (5223, 443)) or self._Ssl: if self._Ssl:
transports_nb.NonBlockingTLS().PlugIn(self, now=1) transports_nb.NonBlockingTLS().PlugIn(self, now=1)
if not self.Connection: # ssl error, stream is closed if not self.Connection: # ssl error, stream is closed
return return