Update go-xmpp.

sasl2
Martin Dosch 2 months ago
parent 1c4acfd07c
commit cce36b070a
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -409,7 +409,7 @@ func (c *Client) init(o *Options) error {
var cbsSlice, mechSlice []string
var tlsConn *tls.Conn
// Use SASL2 if available
if f.Authentication.Mechanism != nil {
if f.Authentication.Mechanism != nil && c.IsEncrypted() {
sasl2 = true
mechSlice = f.Authentication.Mechanism
// Detect whether bind2 is available

Loading…
Cancel
Save