FAST: Check that connection is encrypted.

This commit is contained in:
Martin Dosch 2024-04-12 17:27:33 +02:00
parent fc3ed9a0b8
commit 9161feef4d

View File

@ -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