bugfix: Fixed bug which was causing clients to continue following global service blocks even when user opted to not do that
This commit is contained in:
parent
2ffea605cf
commit
5e626306d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue