mirror of
https://github.com/git-pkgs/proxy.git
synced 2026-11-10 08:09:17 -05:00
8 lines
205 B
Go
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))
|
||
|
|
}
|