Pointer for dnsfilter.Result in querylog didn't make things simpler, revert that change and all related changes.

This commit is contained in:
Eugene Bujak
2018-12-06 17:27:38 +03:00
parent 2ba5cb48b2
commit 253d8a4016
3 changed files with 25 additions and 23 deletions

View File

@@ -168,7 +168,7 @@ func (r *dayTop) addEntry(entry *logEntry, q *dns.Msg, now time.Time) error {
return err
}
if entry.Result != nil && entry.Result.IsFiltered {
if entry.Result.IsFiltered {
err := runningTop.hours[hour].incrementBlocked(hostname)
if err != nil {
log.Printf("Failed to increment value: %s", err)