From b87cc5baf128982774d29012165f5ea0bd417902 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 12 Dec 2015 17:15:29 +0100 Subject: [PATCH] fix a bug in fieldrule --- app/router/rules/json/fieldrule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router/rules/json/fieldrule.go b/app/router/rules/json/fieldrule.go index cbf0133d..481aba4a 100644 --- a/app/router/rules/json/fieldrule.go +++ b/app/router/rules/json/fieldrule.go @@ -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 {