fix a bug in fieldrule

pull/62/head
v2ray 2015-12-12 17:15:29 +01:00
parent fed5697dc3
commit b87cc5baf1
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func NewPlainDomainMatcher(pattern string) *PlainDomainMatcher {
}
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 {