Start using dnsproxy

This commit is contained in:
Andrey Meshkov
2018-12-24 15:19:52 +03:00
parent b195080012
commit e711f6e5fe
19 changed files with 356 additions and 1652 deletions

View File

@@ -191,15 +191,12 @@ func genericLoader(onEntry func(entry *logEntry) error, needMore func() bool, ti
var d *json.Decoder
if enableGzip {
trace("Creating gzip reader")
zr, err := gzip.NewReader(f)
if err != nil {
log.Printf("Failed to create gzip reader: %s", err)
continue
}
defer zr.Close()
trace("Creating json decoder")
d = json.NewDecoder(zr)
} else {
d = json.NewDecoder(f)