Default pki.disconnect_invalid to true and make it reloadable (#859)

This commit is contained in:
Nate Brown
2023-11-13 12:39:38 -06:00
committed by GitHub
parent f41db52560
commit 3356e03d85
5 changed files with 25 additions and 15 deletions

View File

@@ -432,7 +432,7 @@ func (n *connectionManager) isInvalidCertificate(now time.Time, hostinfo *HostIn
return false
}
if !n.intf.disconnectInvalid && err != cert.ErrBlockListed {
if !n.intf.disconnectInvalid.Load() && err != cert.ErrBlockListed {
// Block listed certificates should always be disconnected
return false
}