mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:34:01 +03:00
Implement caching dns resolver
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user