Skip to content
Snippets Groups Projects
Commit 69a9f6f0 authored by nkour's avatar nkour
Browse files

[xmpppy] some jabber servers have ssl on 443 (eg. jabber80.com) so check for...

[xmpppy] some jabber servers have ssl on 443 (eg. jabber80.com) so check for that too, and return ssl and not tls as string for return value in connect()
parent e3b7957b
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment