v0.26.5 minor doc update and code cleanup
This commit is contained in:
1 parent
b2f11f6104
commit
6425eed5ef
8 files changed
+60
-23
No files matched your search
@@ -112,7 +112,9 @@ func Client(o *config.TLSOptions, host string) (*tls.Config, error) {
|
||||
if cfg.VerifyPeerCertificate, err = verifyPins(o.PinSHA256); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cfg.InsecureSkipVerify = true // the pin check above replaces it
|
||||
// The pin check replaces Go's; Go skips it on a resumed session, so a
|
||||
// pinned dialer never resumes, and a pin dropped by a reload holds
|
||||
cfg.InsecureSkipVerify, cfg.SessionTicketsDisabled = true, true
|
||||
}
|
||||
if o.CAFile != "" {
|
||||
pool, err := loadPool(o.CAFile)
|
||||
|
||||
Reference in new issue
Block a user