summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-24 20:58:19 +0200
committermathieui <mathieui@mathieui.net>2021-07-03 11:17:15 +0200
commit79f71ec0c138de9dd8d934a02c0ca1fa56d80110 (patch)
treecc0490b7b3ffe8e9c3c38c9c0fd8a1b53946a38e
parent451bee0892077b09d42580153dbd0c92d193f8d8 (diff)
downloadslixmpp-79f71ec0c138de9dd8d934a02c0ca1fa56d80110.tar.gz
slixmpp-79f71ec0c138de9dd8d934a02c0ca1fa56d80110.tar.bz2
slixmpp-79f71ec0c138de9dd8d934a02c0ca1fa56d80110.tar.xz
slixmpp-79f71ec0c138de9dd8d934a02c0ca1fa56d80110.zip
starttls: do not send back the feature we receive
I don’t see what a server would do with <required/>
-rw-r--r--slixmpp/features/feature_starttls/starttls.py2
1 files changed, 1 insertions, 1 deletions
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):