From 30e9cb7449381e32f532190c85c6ab0e7b1c264b Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Tue, 3 Sep 2024 08:33:14 -0600 Subject: [PATCH] Set handler to disable when nsgroup disabled --- client/internal/dns/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/internal/dns/server.go b/client/internal/dns/server.go index 62e6f09c945..29b0d5ab39c 100644 --- a/client/internal/dns/server.go +++ b/client/internal/dns/server.go @@ -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{