fix(deps): update github.com/docker/go-connections digest to fa09c95

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2023-12-04 02:04:47 +00:00
committed by GitHub
parent 8d0be64093
commit 0a72e3dadf
14 changed files with 58 additions and 130 deletions

View File

@@ -0,0 +1,16 @@
package tlsconfig
import (
"crypto/x509"
"runtime"
)
// SystemCertPool returns a copy of the system cert pool,
// returns an error if failed to load or empty pool on windows.
func SystemCertPool() (*x509.CertPool, error) {
certpool, err := x509.SystemCertPool()
if err != nil && runtime.GOOS == "windows" {
return x509.NewCertPool(), nil
}
return certpool, err
}