diff --git a/src/common/xmpp/client.py b/src/common/xmpp/client.py
index ded76b35c70a1fccab46f1749fda09052add9eb0..4641ab5ce296558b494188d541bd886ea2cef4c6 100644
--- a/src/common/xmpp/client.py
+++ b/src/common/xmpp/client.py
@@ -156,9 +156,9 @@ class CommonClient:
         if not connected: return
         self._Server,self._Proxy=server,proxy
         self.connected='tcp'
-        if self.Connection.getPort()==5223:
+        if self.Connection.getPort() in (5223, 443):
             transports.TLS().PlugIn(self,now=1)
-            self.connected='tls'
+            self.connected='ssl'
         dispatcher.Dispatcher().PlugIn(self)
         while self.Dispatcher.Stream._document_attrs is None: self.Process(1)
         if self.Dispatcher.Stream._document_attrs.has_key('version') and self.Dispatcher.Stream._document_attrs['version']=='1.0':