From 5e626306d1d02661d0574ae031e8ff194013c87a Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Mon, 3 Oct 2022 00:02:35 +0530 Subject: [PATCH] bugfix: Fixed bug which was causing clients to continue following global service blocks even when user opted to not do that --- internal/home/dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/home/dns.go b/internal/home/dns.go index 06c38bcc..c533807e 100644 --- a/internal/home/dns.go +++ b/internal/home/dns.go @@ -335,8 +335,6 @@ func applyAdditionalFiltering(clientIP net.IP, clientID string, setts *filtering // pref is a prefix for logging messages around the scope. const pref = "applying filters" - Context.filters.ApplyBlockedServices(setts, nil) - log.Debug("%s: looking for client with ip %s and clientid %q", pref, clientIP, clientID) if clientIP == nil { @@ -359,6 +357,8 @@ func applyAdditionalFiltering(clientIP net.IP, clientID string, setts *filtering if c.UseOwnBlockedServices { Context.filters.ApplyBlockedServices(setts, c.BlockedServices) + } else { + Context.filters.ApplyBlockedServices(setts, nil) } setts.ClientName = c.Name