v2ray-core/app/dns/config.go

15 lines
267 B
Go
Raw Normal View History

2015-12-06 10:00:10 +00:00
package dns
2016-01-15 14:23:12 +00:00
import (
"github.com/v2ray/v2ray-core/common/serial"
)
type CacheConfig struct {
TrustedTags map[serial.StringLiteral]bool
}
func (this *CacheConfig) IsTrustedSource(tag serial.StringLiteral) bool {
_, found := this.TrustedTags[tag]
return found
2015-12-06 10:00:10 +00:00
}