ghproxy/auth/blacklist.go
WJQSERVER b87a8de3c4 fix
2024-10-06 01:03:38 +08:00

11 lines
211 B
Go

package auth
func CheckBlacklist(fullrepo string, blist []string) bool {
for _, blocked := range blist {
if blocked == fullrepo {
return true
}
}
logw("%s not in blacklist", fullrepo)
return false
}