diff --git a/main.go b/main.go index 05828e4a..6f23a92c 100644 --- a/main.go +++ b/main.go @@ -98,7 +98,7 @@ func DetectionPath(gopath string) string { arrPath := strings.FieldsFunc(path,split) for _,content := range arrPath { fullPath := filepath.Join(content, "src", "github.com", "v2ray", "domain-list-community", "data") - _, err1 := os.Stat(fullPath+"/") + _, err1 := os.Stat(fullPath) if err1 == nil || os.IsExist(err1) { return fullPath }