mirror of https://github.com/v2ray/v2ray-core
fix a bug in fieldrule
parent
fed5697dc3
commit
b87cc5baf1
|
@ -57,7 +57,7 @@ func NewPlainDomainMatcher(pattern string) *PlainDomainMatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *PlainDomainMatcher) Match(domain string) bool {
|
func (this *PlainDomainMatcher) Match(domain string) bool {
|
||||||
return strings.Contains(this.pattern, strings.ToLower(domain))
|
return strings.Contains(strings.ToLower(domain), this.pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
type RegexpDomainMatcher struct {
|
type RegexpDomainMatcher struct {
|
||||||
|
|
Loading…
Reference in New Issue