chore: allow setting cache-max-size in dns section

This commit is contained in:
wwqgtxx
2025-07-27 10:31:12 +08:00
parent c3a3009a8c
commit 66fd5c9f0c
3 changed files with 14 additions and 10 deletions

View File

@@ -260,6 +260,7 @@ func updateDNS(c *config.DNS, generalIPv6 bool) {
DirectServer: c.DirectNameServer,
DirectFollowPolicy: c.DirectFollowPolicy,
CacheAlgorithm: c.CacheAlgorithm,
CacheMaxSize: c.CacheMaxSize,
}
r := dns.NewResolver(cfg)