2
0

Only initialize the CA if the path is not an empty string.

This commit is contained in:
Sean Chittenden
2018-02-02 08:24:41 -08:00
parent 52bada3401
commit f0dc593c2f
+1 -1
View File
@@ -929,7 +929,7 @@ func configTLS(args configTLSArgs, cc *ConnConfig) error {
return errors.New("sslmode is invalid")
}
{
if args.sslRootCert != "" {
caCertPool := x509.NewCertPool()
caPath := args.sslRootCert