mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
fix
This commit is contained in:
parent
b87a8de3c4
commit
c78d114767
2 changed files with 43 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue