1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-09 11:51:02 -05:00
v2fly/app/dns/internal/config.go

15 lines
272 B
Go
Raw Normal View History

2016-01-31 11:01:28 -05:00
package internal
2015-12-06 05:00:10 -05:00
2016-01-15 09:23:12 -05: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 05:00:10 -05:00
}