* minor fixes

This commit is contained in:
Simon Zolin
2019-11-08 14:56:19 +03:00
parent 9b8cccdfcf
commit f579c23bc9
6 changed files with 22 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ func processIPCIDRArray(dst *map[string]bool, dstIPNet *[]net.IPNet, src []strin
return nil
}
// Return TRUE if this client should be blocked
// IsBlockedIP - return TRUE if this client should be blocked
func (a *accessCtx) IsBlockedIP(ip string) bool {
a.lock.Lock()
defer a.lock.Unlock()
@@ -104,7 +104,7 @@ func (a *accessCtx) IsBlockedIP(ip string) bool {
return false
}
// Return TRUE if this domain should be blocked
// IsBlockedDomain - return TRUE if this domain should be blocked
func (a *accessCtx) IsBlockedDomain(host string) bool {
a.lock.Lock()
_, ok := a.blockedHosts[host]