MySQL: Fix tls skip verify option (#96475)

MySQL: Fix skip tls verify option
This commit is contained in:
Zoltán Bedi 2024-11-19 10:46:24 +01:00 committed by GitHub
parent d3badb8a07
commit 3fa8df6b62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,6 +123,8 @@ func NewInstanceSettings(logger log.Logger) datasource.InstanceFactoryFunc {
return nil, err
}
cnnstr += "&tls=" + tlsConfigString
} else if tlsConfig.InsecureSkipVerify {
cnnstr += "&tls=skip-verify"
}
if dsInfo.JsonData.Timezone != "" {