User rules -- hold them as a slice of strings, which is how dns forwarding server will expect them.

This commit is contained in:
Eugene Bujak
2018-11-28 16:05:24 +03:00
parent 5a548be16c
commit ea1353422f
3 changed files with 17 additions and 26 deletions

2
app.go
View File

@@ -149,7 +149,7 @@ func main() {
log.Printf("Couldn't load filter %d contents due to %s", filter.ID, err)
// clear LastUpdated so it gets fetched right away
}
if len(filter.Contents) == 0 {
if len(filter.Rules) == 0 {
filter.LastUpdated = time.Time{}
}
}