Increase dns cleanup interval to 60 seconds

pull/62/head
v2ray 2015-12-09 00:30:58 +01:00
parent 6afeaccc5a
commit bc144248e2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {