feat: remove deprecated use of BuildNameToCertificate

This commit is contained in:
James Houlahan
2020-12-15 16:17:56 +01:00
parent be583c431e
commit dc3b4d53e1
2 changed files with 1 additions and 7 deletions

View File

@ -158,13 +158,6 @@ func (t *TLS) GetConfig() (tlsConfig *tls.Config, err error) {
tlsConfig.RootCAs = caCertPool
tlsConfig.ClientCAs = caCertPool
/* This is deprecated:
* SA1019: tlsConfig.BuildNameToCertificate is deprecated:
* NameToCertificate only allows associating a single certificate with a given name.
* Leave that field nil to let the library select the first compatible chain from Certificates.
*/
tlsConfig.BuildNameToCertificate() // nolint[staticcheck]
return tlsConfig, err
}