You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, errors.WithMessage(err, "could not unmarshal peer.deliveryclient.addressOverrides")
67
+
}
68
+
69
+
iflen(overrides) ==0 {
70
+
returnnil, nil
71
+
}
72
+
73
+
overrideMap:=map[string]*orderers.Endpoint{}
74
+
for_, override:=rangeoverrides {
75
+
certPool:=x509.NewCertPool()
76
+
ifoverride.CACertsFile!="" {
77
+
pem, err:=ioutil.ReadFile(override.CACertsFile)
78
+
iferr!=nil {
79
+
logger.Warningf("could not read file '%s' specified for caCertsFile of orderer endpoint override from '%s' to '%s': %s", override.CACertsFile, override.From, override.To, err)
80
+
continue
81
+
}
82
+
success:=certPool.AppendCertsFromPEM(pem)
83
+
if!success {
84
+
logger.Warningf("Attempted to create a cert pool for override of orderer address '%s' to '%s' but did not find any valid certs in '%s'", override.From, override.To, override.CACertsFile)
0 commit comments