From 7ab140964d41a5d83d51819692ec3d3737e41058 Mon Sep 17 00:00:00 2001 From: amd Date: Wed, 10 Jan 2024 02:26:17 +0330 Subject: [PATCH] fix: fix flush dns cache in android and cmfa build. --- dns/patch_android.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/patch_android.go b/dns/patch_android.go index 2e9a6b9f..e62aabcd 100644 --- a/dns/patch_android.go +++ b/dns/patch_android.go @@ -49,7 +49,7 @@ func ServeDNSWithDefaultServer(msg *D.Msg) (*D.Msg, error) { func FlushCacheWithDefaultResolver() { if r := resolver.DefaultResolver; r != nil { - r.(*Resolver).lruCache = lru.New[string, *D.Msg](lru.WithSize[string, *D.Msg](4096), lru.WithStale[string, *D.Msg](true)) + r.(*Resolver).cache = lru.New(lru.WithSize[string, *D.Msg](4096), lru.WithStale[string, *D.Msg](true)) } }