starttls: do not send back the feature we receive

I don’t see what a server would do with <required/>
This commit is contained in:
mathieui 2021-04-24 20:58:19 +02:00
parent 451bee0892
commit 79f71ec0c1

View file

@ -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):