mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-09 03:37:37 -05:00
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
|
|
}
|