mirror of
https://github.com/distribution/distribution.git
synced 2025-06-23 05:59:31 +00:00
feat: enable specifying harbor as remote domain in REGISTRY_PROXY_REMOTEDOMAIN
https://github.com/distribution/distribution/discussions/4340 Signed-off-by: kahirokunn <okinakahiro@gmail.com>
This commit is contained in:
parent
c49220d492
commit
831de8fa36
@ -239,7 +239,9 @@ func (r *remoteAuthChallenger) tryEstablishChallenges(ctx context.Context) error
|
||||
defer r.Unlock()
|
||||
|
||||
remoteURL := r.remoteURL
|
||||
remoteURL.Path = "/v2/"
|
||||
if remoteURL.Path == "" || remoteURL.Path == "/" {
|
||||
remoteURL.Path = "/v2/"
|
||||
}
|
||||
challenges, err := r.cm.GetChallenges(remoteURL)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user