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:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user