From bc144248e239f2404741726e71f83670f8409548 Mon Sep 17 00:00:00 2001 From: v2ray Date: Wed, 9 Dec 2015 00:30:58 +0100 Subject: [PATCH] Increase dns cleanup interval to 60 seconds --- app/dns/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dns/dns.go b/app/dns/dns.go index 218dcd09..7c06bb8e 100644 --- a/app/dns/dns.go +++ b/app/dns/dns.go @@ -43,7 +43,7 @@ func NewCache() *DnsCache { } func (this *DnsCache) cleanup() { - for range time.Tick(10 * time.Second) { + for range time.Tick(60 * time.Second) { entry2Remove := make([]*entry, 0, 128) this.RLock() for _, entry := range this.cache {