+ pass client Name and IP to dnsfilter

* use urlfilter v0.11.0
This commit is contained in:
Simon Zolin
2020-06-23 14:36:26 +03:00
parent 49a92605b8
commit 890876cb05
5 changed files with 24 additions and 11 deletions

View File

@@ -122,7 +122,7 @@ func (a *accessCtx) IsBlockedIP(ip string) bool {
// IsBlockedDomain - return TRUE if this domain should be blocked
func (a *accessCtx) IsBlockedDomain(host string) bool {
a.lock.Lock()
_, ok := a.blockedHostsEngine.Match(host, nil)
_, ok := a.blockedHostsEngine.Match(host)
a.lock.Unlock()
return ok
}