summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-09 10:47:27 -0700
committerLance Stout <lancestout@gmail.com>2012-06-09 10:48:16 -0700
commit2b298766c91b5f8c36783be93ad54c228a8dd6ba (patch)
tree90e3afc02c15685dad73b56552f3e5356da27617 /sleekxmpp
parent10664d723b24739bd0b868b71dbcc8dab80d02ef (diff)
downloadslixmpp-2b298766c91b5f8c36783be93ad54c228a8dd6ba.tar.gz
slixmpp-2b298766c91b5f8c36783be93ad54c228a8dd6ba.tar.bz2
slixmpp-2b298766c91b5f8c36783be93ad54c228a8dd6ba.tar.xz
slixmpp-2b298766c91b5f8c36783be93ad54c228a8dd6ba.zip
Use False for use_tls for components.
A log message is shown for those who try to set it to True. Fixes issue #171
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/componentxmpp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py
index 1fb9c4d9..33fc882d 100644
--- a/sleekxmpp/componentxmpp.py
+++ b/sleekxmpp/componentxmpp.py
@@ -104,10 +104,13 @@ class ComponentXMPP(BaseXMPP):
self.server_name = self.boundjid.host
+ if use_tls:
+ log.info("XEP-0114 components can not use TLS")
+
log.debug("Connecting to %s:%s", host, port)
return XMLStream.connect(self, host=host, port=port,
use_ssl=use_ssl,
- use_tls=use_tls,
+ use_tls=False,
reattempt=reattempt)
def incoming_filter(self, xml):