[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()
This commit is contained in:
parent
e3b7957b61
commit
69a9f6f08a
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue