summaryrefslogtreecommitdiff
path: root/registry/service.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-02-27 13:03:54 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-03-17 17:12:28 +0100
commit2b5dc81582573ae4f7ad290cf54411265843faf3 (patch)
treef7854b085edc4578ca180d797c3db4923cadd8c7 /registry/service.go
parent382b9865202062b2269d796c428c3cfa89a23846 (diff)
downloaddocker-2b5dc81582573ae4f7ad290cf54411265843faf3.tar.gz
registry: move allowNondistributableArtifacts, isSecureIndex to config
This felt slightly more natural to make it a function of the config type itself. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'registry/service.go')
-rw-r--r--registry/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/service.go b/registry/service.go
index f441d15ee4..0cda3a8806 100644
--- a/registry/service.go
+++ b/registry/service.go
@@ -224,7 +224,7 @@ type APIEndpoint struct {
// TLSConfig constructs a client TLS configuration based on server defaults
func (s *defaultService) TLSConfig(hostname string) (*tls.Config, error) {
s.mu.RLock()
- secure := isSecureIndex(s.config, hostname)
+ secure := s.config.isSecureIndex(hostname)
s.mu.RUnlock()
return newTLSConfig(hostname, secure)