Skip to content

Commit

Permalink
Set handler to disable when nsgroup disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricanehrndz committed Sep 3, 2024
1 parent 2cef87f commit 30e9cb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/internal/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ func (s *DefaultServer) buildUpstreamHandlerUpdate(nameServerGroups []*nbdns.Nam
return nil, fmt.Errorf("received a nameserver group with an empty domain element")
}
if !nsGroup.Enabled {
handler.disabled = true
continue
}
muxUpdates = append(muxUpdates, muxUpdate{
Expand Down

0 comments on commit 30e9cb7

Please sign in to comment.