[client] Fix race dns cleanup race condition (#3652)

This commit is contained in:
Viktor Liu 2025-04-10 13:21:14 +02:00 committed by GitHub
parent 5ea2806663
commit e3ce026355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -467,6 +467,11 @@ func (s *DefaultServer) applyHostConfig() {
return
}
// prevent reapplying config if we're shutting down
if s.ctx.Err() != nil {
return
}
config := s.currentConfig
existingDomains := make(map[string]struct{})