Never send starttls when the connection is already encrypted
This commit is contained in:
parent
b7d92694ba
commit
5554e3a51f
1 changed files with 1 additions and 1 deletions
|
@ -1015,7 +1015,7 @@
|
||||||
namespace: XMPP_NS_SASL];
|
namespace: XMPP_NS_SASL];
|
||||||
OFMutableSet *mechanisms = [OFMutableSet set];
|
OFMutableSet *mechanisms = [OFMutableSet set];
|
||||||
|
|
||||||
if (starttls != nil) {
|
if (!encrypted && starttls != nil) {
|
||||||
[self sendStanza:
|
[self sendStanza:
|
||||||
[OFXMLElement elementWithName: @"starttls"
|
[OFXMLElement elementWithName: @"starttls"
|
||||||
namespace: XMPP_NS_STARTTLS]];
|
namespace: XMPP_NS_STARTTLS]];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue