Implement caching dns resolver

This commit is contained in:
9seconds
2021-03-30 14:14:37 +03:00
parent 841a4d2227
commit 10b78322a3
16 changed files with 163 additions and 47 deletions
-6
View File
@@ -59,12 +59,6 @@ func (c *Proxy) Execute() error { // nolint: funlen
PreferIP: c.Config.PreferIP.Value(mtglib.DefaultPreferIP),
}
defer func() {
opts.AntiReplayCache.Shutdown()
opts.IPBlocklist.Shutdown()
opts.EventStream.Shutdown()
}()
if opts.Concurrency == 0 {
opts.Concurrency = mtglib.DefaultConcurrency
}