1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-14 16:08:15 -04:00
v2fly/app/dns/config.go
2016-01-15 15:23:12 +01:00

15 lines
267 B
Go

package dns
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
}