Merge pull request #10109 from dmcgowan/fix-fallback-explicit-tls

Update HTTP fallback to better account for TLS timeout and previous attempts
This commit is contained in:
Maksym Pavlenko
2024-04-23 04:10:39 +00:00
committed by GitHub
6 changed files with 112 additions and 25 deletions

View File

@@ -149,6 +149,11 @@ func resolverDefaultTLS(clicontext *cli.Context) (*tls.Config, error) {
config.Certificates = []tls.Certificate{keyPair}
}
// If nothing was set, return nil rather than empty config
if !config.InsecureSkipVerify && config.RootCAs == nil && config.Certificates == nil {
return nil, nil
}
return config, nil
}