mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
Fix variable capture in ECH rotation goroutine
Co-authored-by: mholt <1128849+mholt@users.noreply.github.com>
This commit is contained in:
parent
5fdc6c5e76
commit
48bb0365e5
1 changed files with 3 additions and 3 deletions
|
|
@ -428,10 +428,10 @@ func (t *TLS) Start() error {
|
|||
case <-time.After(1 * time.Hour):
|
||||
// ensure old keys are rotated out
|
||||
t.EncryptedClientHello.configsMu.Lock()
|
||||
err = t.EncryptedClientHello.rotateECHKeys(t.ctx, echLogger, false)
|
||||
rotateErr := t.EncryptedClientHello.rotateECHKeys(t.ctx, echLogger, false)
|
||||
t.EncryptedClientHello.configsMu.Unlock()
|
||||
if err != nil {
|
||||
echLogger.Error("rotating ECH configs failed", zap.Error(err))
|
||||
if rotateErr != nil {
|
||||
echLogger.Error("rotating ECH configs failed", zap.Error(rotateErr))
|
||||
}
|
||||
case <-t.ctx.Done():
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue