This commit is contained in:
WJQSERVER 2024-10-06 01:20:34 +08:00
parent b87a8de3c4
commit c78d114767
2 changed files with 43 additions and 2 deletions

View file

@ -60,7 +60,7 @@ func NoRouteHandler(cfg *config.Config, blist *config.Blist) gin.HandlerFunc {
fullrepo := fmt.Sprintf("%s/%s", username, repo)
// 黑名单检查
blacklistpass := auth.CheckBlacklist(fullrepo, blist.Blacklist)
blacklistpass := auth.CheckBlacklist(fullrepo)
if blacklistpass {
c.AbortWithStatusJSON(404, gin.H{"error": "Not found"})
logw("Blacklisted repo: %s", fullrepo)