mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
mssql: explicit disable encryption when its disabled (#46546)
This commit is contained in:
parent
d3b2ffed35
commit
b52794601d
@ -169,6 +169,8 @@ func generateConnectionString(dsInfo sqleng.DataSourceInfo) (string, error) {
|
||||
if certificate != "" {
|
||||
connStr += fmt.Sprintf("certificate=%s;", certificate)
|
||||
}
|
||||
} else if encrypt == "disable" {
|
||||
connStr += fmt.Sprintf("encrypt=%s;", dsInfo.JsonData.Encrypt)
|
||||
}
|
||||
return connStr, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user