From 3b447544de00a53d44a30cda9c5429f9f3d59c8d Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 22 Aug 2006 08:13:23 +0000 Subject: [PATCH] don't force tls on ports 5223 and 443 --- src/common/xmpp/client_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/client_nb.py b/src/common/xmpp/client_nb.py index 7dab4d25d..40753ef4e 100644 --- a/src/common/xmpp/client_nb.py +++ b/src/common/xmpp/client_nb.py @@ -126,7 +126,7 @@ class NBCommonClient(CommonClient): def _on_connected(self): 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) if not self.Connection: # ssl error, stream is closed return