CertPool Fix (#96)

Remove caCertPool errCert “else” in p2pnetwork.go
This commit is contained in:
W192547975
2024-08-02 14:23:47 +08:00
committed by GitHub
parent a0df0b1e95
commit c68094cc12

View File

@@ -533,7 +533,6 @@ func (pn *P2PNetwork) init() error {
caCertPool, errCert := x509.SystemCertPool()
if errCert != nil {
gLog.Println(LvERROR, "Failed to load system root CAs:", errCert)
} else {
caCertPool = x509.NewCertPool()
}
caCertPool.AppendCertsFromPEM([]byte(rootCA))