forked from jshiffer/go-xmpp
FAST success: New token OR reduced expiry not AND.
This commit is contained in:
parent
961b7e435e
commit
f067814851
2
xmpp.go
2
xmpp.go
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user