Use False for use_tls for components.
A log message is shown for those who try to set it to True. Fixes issue #171
This commit is contained in:
parent
10664d723b
commit
2b298766c9
1 changed files with 4 additions and 1 deletions
|
@ -104,10 +104,13 @@ class ComponentXMPP(BaseXMPP):
|
||||||
|
|
||||||
self.server_name = self.boundjid.host
|
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)
|
log.debug("Connecting to %s:%s", host, port)
|
||||||
return XMLStream.connect(self, host=host, port=port,
|
return XMLStream.connect(self, host=host, port=port,
|
||||||
use_ssl=use_ssl,
|
use_ssl=use_ssl,
|
||||||
use_tls=use_tls,
|
use_tls=False,
|
||||||
reattempt=reattempt)
|
reattempt=reattempt)
|
||||||
|
|
||||||
def incoming_filter(self, xml):
|
def incoming_filter(self, xml):
|
||||||
|
|
Loading…
Reference in a new issue