mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
fix: prevCertificate save not correct in loop (#17744)
fix certs save not correct Co-authored-by: guozhi.li <guozhi.li@daocloud.io>
This commit is contained in:
+1
-1
@@ -126,8 +126,8 @@ func NewWithConfig(config Config) (KMS, error) {
|
|||||||
if config.Certificate == nil || config.ReloadCertEvents == nil {
|
if config.Certificate == nil || config.ReloadCertEvents == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
var prevCertificate tls.Certificate
|
||||||
for {
|
for {
|
||||||
var prevCertificate tls.Certificate
|
|
||||||
certificate, ok := <-config.ReloadCertEvents
|
certificate, ok := <-config.ReloadCertEvents
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user