Skip to content

Commit

Permalink
Fix lost root zone handler (#1975)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mlsmaycon authored May 13, 2024
1 parent 570e28d commit 650bca7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/internal/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 650bca7

Please sign in to comment.