mirror of
https://github.com/distribution/distribution.git
synced 2026-01-29 21:40:32 +00:00
registry: remove accidentally added --insecure-registry feature
If `--insecure-registry mydomain.com` was specified, it would match a registry at mydomain.com on any port. This was accidentally added in #9735 and is now being reverted. Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
@@ -190,7 +190,7 @@ func isSecure(hostname string, insecureRegistries []string) (bool, error) {
|
||||
}
|
||||
|
||||
for _, r := range insecureRegistries {
|
||||
if hostname == r || host == r {
|
||||
if hostname == r {
|
||||
// hostname matches insecure registry
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user