config.go 267 B

1234567891011121314
  1. package dns
  2. import (
  3. "github.com/v2ray/v2ray-core/common/serial"
  4. )
  5. type CacheConfig struct {
  6. TrustedTags map[serial.StringLiteral]bool
  7. }
  8. func (this *CacheConfig) IsTrustedSource(tag serial.StringLiteral) bool {
  9. _, found := this.TrustedTags[tag]
  10. return found
  11. }