Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-09 15:49:16 -05:00
pkg-proxy/internal/handler/denylist.go
2026-09-20 14:42:30 +05:30

8 lines
205 B
Go

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))
}