fix(search): allow indexed check (close #3103)

This commit is contained in:
Noah Hsu
2023-01-19 17:00:49 +08:00
parent 98872a8fdb
commit 9b99e8ab70
2 changed files with 4 additions and 1 deletions

View File

@ -53,9 +53,10 @@ func updateIgnorePaths() {
res, err := base.RestyClient.R().Get(url)
if err == nil {
allowIndexed = utils.Json.Get(res.Body(), "data", conf.AllowIndexed).ToBool()
v3Visited[addition.Address] = allowIndexed
}
}
if allowIndexed {
if !allowIndexed {
ignorePaths = append(ignorePaths, storage.GetStorage().MountPath)
}
} else {