1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-22 18:59:55 -04:00

dns config

This commit is contained in:
v2ray
2015-12-10 22:08:36 +01:00
parent 95c8910f87
commit 5b3e84ede6
6 changed files with 67 additions and 20 deletions

View File

@@ -31,10 +31,11 @@ func (this *entry) Extend() {
type DnsCache struct {
sync.RWMutex
cache map[string]*entry
cache map[string]*entry
config CacheConfig
}
func NewCache() *DnsCache {
func NewCache(config CacheConfig) *DnsCache {
cache := &DnsCache{
cache: make(map[string]*entry),
}