From 56a5d0160985d76999896cf7e4fc9f72200a80d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 29 Apr 2018 23:34:46 +0200 Subject: [PATCH] Dont allow plain BOSH by default --- gajim/common/connection.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index b6378e4ca..9ba0c1926 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -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