Revert "FAST success: New token OR reduced expiry not AND."

This reverts commit f067814851.
This commit is contained in:
Martin Dosch 2024-04-12 11:51:56 +02:00
parent f067814851
commit d9df620fa4

View File

@ -742,7 +742,7 @@ func (c *Client) init(o *Options) error {
if bind2 { if bind2 {
c.jid = v.AuthorizationIdentifier c.jid = v.AuthorizationIdentifier
} }
if v.Token.Token != "" || v.Token.Token != o.FastToken { if v.Token.Token != "" && v.Token.Token != o.FastToken {
m := f.Authentication.Inline.Fast.Mechanism m := f.Authentication.Inline.Fast.Mechanism
switch { switch {
case slices.Contains(m, "HT-SHA-256-EXPR") && tls13: case slices.Contains(m, "HT-SHA-256-EXPR") && tls13: