mirror of https://github.com/v2ray/v2ray-core
15 lines
272 B
Go
15 lines
272 B
Go
|
package internal
|
||
|
|
||
|
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
|
||
|
}
|