Fix lost root zone handler (#1975)

When there is a connection issue with the
 root zone upstream we remove it from the
 dns mux, and we need to add it again
This commit is contained in:
Maycon Santos 2024-05-13 18:11:08 +02:00 committed by GitHub
parent 570e28d227
commit 650bca7ca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -549,9 +549,7 @@ func (s *DefaultServer) upstreamCallbacks(
if nsGroup.Primary {
s.currentConfig.RouteAll = true
if runtime.GOOS == "android" {
s.service.RegisterMux(nbdns.RootZone, handler)
}
s.service.RegisterMux(nbdns.RootZone, handler)
}
if err := s.hostManager.applyDNSConfig(s.currentConfig); err != nil {
l.WithError(err).Error("reactivate temporary disabled nameserver group, DNS update apply")