Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-10 08:09:17 -05:00
pkg-proxy/internal/handler/denylist.go

8 lines
205 B
Go
Raw Permalink Normal View History

package handler
func (p *Proxy) versionDenied(ecosystem, name, version string) bool {
if p.Denylist == nil {
return false
}
return p.Denylist.Denied(canonicalVersionPURL(ecosystem, name, version))
}