forked from jshiffer/go-xmpp
Revert "FAST success: New token OR reduced expiry not AND."
This reverts commit f067814851
.
This commit is contained in:
parent
f067814851
commit
d9df620fa4
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