fix potential insecure skip verification bug
This commit is contained in:
parent
7b743f12fe
commit
280fec2913
|
@ -104,8 +104,6 @@ func setupTLSConfig(conf map[string]string) (*tls.Config, error) {
|
|||
}
|
||||
|
||||
tlsClientConfig.Certificates = []tls.Certificate{tlsCert}
|
||||
} else {
|
||||
tlsClientConfig.InsecureSkipVerify = true
|
||||
}
|
||||
|
||||
caPool := x509.NewCertPool()
|
||||
|
|
Loading…
Reference in New Issue