FAST success: New token OR reduced expiry not AND.

This commit is contained in:
Martin Dosch 2024-04-12 10:53:15 +02:00
parent 961b7e435e
commit f067814851

View File

@ -742,7 +742,7 @@ func (c *Client) init(o *Options) error {
if bind2 {
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
switch {
case slices.Contains(m, "HT-SHA-256-EXPR") && tls13: