mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 01:38:41 +02:00
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:
parent
570e28d227
commit
650bca7ca8
@ -549,9 +549,7 @@ func (s *DefaultServer) upstreamCallbacks(
|
|||||||
|
|
||||||
if nsGroup.Primary {
|
if nsGroup.Primary {
|
||||||
s.currentConfig.RouteAll = true
|
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 {
|
if err := s.hostManager.applyDNSConfig(s.currentConfig); err != nil {
|
||||||
l.WithError(err).Error("reactivate temporary disabled nameserver group, DNS update apply")
|
l.WithError(err).Error("reactivate temporary disabled nameserver group, DNS update apply")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user