Use go tools

This commit is contained in:
Aleksey Dmitrevskiy 2019-02-22 16:41:30 +03:00
parent 623c3bba09
commit 3916f1073d

View File

@ -620,7 +620,7 @@ func (d *Dnsfilter) checkSafeSearch(host string) (Result, error) {
return Result{}, nil
}
res := Result {IsFiltered: true, Reason: FilteredSafeSearch}
res := Result{IsFiltered: true, Reason: FilteredSafeSearch}
if ip := net.ParseIP(safeHost); ip != nil {
res.IP = ip
err = safeSearchCache.Set(host, res)