Commit 56a5d016 authored by Philipp Hörist's avatar Philipp Hörist

Dont allow plain BOSH by default

parent b8554e3e
......@@ -1191,15 +1191,18 @@ class Connection(CommonConnection, ConnectionHandlers):
if scheme == 'https':
connection_types = ['ssl']
else:
connection_types = ['plain']
if allow_plaintext_connection:
connection_types = ['plain']
else:
connection_types = []
host = self._select_next_host(self._hosts)
self._hosts.remove(host)
# Skip record if connection type is not supported.
if host['type'] not in connection_types:
log.debug("Skipping connection record with unsupported type: %s" %
host['type'])
log.info("Skipping connection record with unsupported type: %s",
host['type'])
self._connect_to_next_host(retry)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment