Revert LRU cache changes

This commit is contained in:
世界 2023-04-22 08:14:44 +08:00
parent 438de36749
commit d2d4faf520
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
9 changed files with 19 additions and 21 deletions

View file

@ -111,7 +111,7 @@ func NewRouter(
defaultMark: options.DefaultMark,
platformInterface: platformInterface,
}
router.dnsClient = dns.NewClient(ctx, dnsOptions.DNSClientOptions.DisableCache, dnsOptions.DNSClientOptions.DisableExpire, router.dnsLogger)
router.dnsClient = dns.NewClient(dnsOptions.DNSClientOptions.DisableCache, dnsOptions.DNSClientOptions.DisableExpire, router.dnsLogger)
for i, ruleOptions := range options.Rules {
routeRule, err := NewRule(router, router.logger, ruleOptions)
if err != nil {