mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
Increase dns cleanup interval to 60 seconds
This commit is contained in:
parent
6afeaccc5a
commit
bc144248e2
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user