* clients: manual clients don't exclude auto-clients anymore

This commit is contained in:
Simon Zolin
2020-01-09 17:38:22 +03:00
parent 995373c74b
commit b3ddae7f85
2 changed files with 17 additions and 15 deletions

View File

@@ -494,12 +494,6 @@ func (clients *clientsContainer) AddHost(ip, host string, source clientSource) (
clients.lock.Lock()
defer clients.lock.Unlock()
// check existing clients first
_, ok := clients.findByIP(ip)
if ok {
return false, nil
}
// check auto-clients index
ch, ok := clients.ipHost[ip]
if ok && ch.Source > source {