소스 검색

Increase dns cleanup interval to 60 seconds

v2ray 10 년 전
부모
커밋
bc144248e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/dns/dns.go

+ 1 - 1
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 {