From 8567d6034f9668e68a15f7166c1df6999e646477 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 9 Jun 2012 10:47:27 -0700 Subject: Use False for use_tls for components. A log message is shown for those who try to set it to True. Fixes issue #171 --- sleekxmpp/componentxmpp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sleekxmpp') 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): -- cgit v1.2.3