From 79f71ec0c138de9dd8d934a02c0ca1fa56d80110 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 24 Apr 2021 20:58:19 +0200 Subject: starttls: do not send back the feature we receive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t see what a server would do with --- slixmpp/features/feature_starttls/starttls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/features/feature_starttls/starttls.py b/slixmpp/features/feature_starttls/starttls.py index fe793a2d..89cbb6b2 100644 --- a/slixmpp/features/feature_starttls/starttls.py +++ b/slixmpp/features/feature_starttls/starttls.py @@ -52,7 +52,7 @@ class FeatureSTARTTLS(BasePlugin): elif self.xmpp.disable_starttls: return False else: - self.xmpp.send(features['starttls']) + self.xmpp.send(stanza.STARTTLS()) return True async def _handle_starttls_proceed(self, proceed): -- cgit v1.2.3