We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20a4fc2 + 8babe5b commit 27a458aCopy full SHA for 27a458a
net/tlsdial/tlsdial.go
@@ -109,9 +109,8 @@ func Config(host string, base *tls.Config) *tls.Config {
109
// detecting SSL MiTM.
110
opts.Roots = bakedInRoots()
111
_, bakedErr := cs.PeerCertificates[0].Verify(opts)
112
- if debug() {
+ if bakedErr != nil && debug() {
113
log.Printf("tlsdial(bake %q): %v", host, bakedErr)
114
- } else if bakedErr != nil {
115
if _, loaded := tlsdialWarningPrinted.LoadOrStore(host, true); !loaded {
116
if errSys == nil {
117
log.Printf("tlsdial: warning: server cert for %q is not a Let's Encrypt cert", host)
0 commit comments