Cache DNS lookups when resolving safebrowsing or parental servers, also cache replacement hostnames as well.

This commit is contained in:
Eugene Bujak
2018-10-10 19:10:38 +03:00
parent e2295c1a11
commit a5d1053520
2 changed files with 33 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ import (
"sync/atomic"
"time"
_ "github.com/benburkert/dns/init"
"github.com/bluele/gcache"
"golang.org/x/net/publicsuffix"
)