From 60009fedea1b97588b36e0ca3794601938a35cd8 Mon Sep 17 00:00:00 2001 From: zu1k Date: Wed, 26 Aug 2020 13:26:18 +0800 Subject: [PATCH] fix country filter --- pkg/provider/clash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/clash.go b/pkg/provider/clash.go index 8383eb0..a8c4cd0 100644 --- a/pkg/provider/clash.go +++ b/pkg/provider/clash.go @@ -54,7 +54,7 @@ func (c Clash) Provide() string { } if !noNeedFilterCountry { for _, c := range countries { - if strings.HasPrefix(p.BaseInfo().Name, c) { + if strings.Contains(p.BaseInfo().Name, c) { countryOk = true break }