forked from jshiffer/go-xmpp
FAST: Check that connection is encrypted.
This commit is contained in:
parent
fc3ed9a0b8
commit
9161feef4d
2
xmpp.go
2
xmpp.go
@ -621,7 +621,7 @@ func (c *Client) init(o *Options) error {
|
||||
if o.UserAgentID != "" {
|
||||
userAgentID = fmt.Sprintf(" id='%s'", o.UserAgentID)
|
||||
}
|
||||
if f.Authentication.Inline.Fast.Mechanism != nil && o.UserAgentID != "" {
|
||||
if f.Authentication.Inline.Fast.Mechanism != nil && o.UserAgentID != "" && c.IsEncrypted() {
|
||||
var mech string
|
||||
if o.FastToken == "" {
|
||||
m := f.Authentication.Inline.Fast.Mechanism
|
||||
|
Loading…
Reference in New Issue
Block a user