5 func (s *DefaultService) lookupV1Endpoints(hostname string) (endpoints []APIEndpoint, err error) {
6 if hostname == DefaultNamespace || hostname == DefaultV2Registry.Host || hostname == IndexHostname {
7 return []APIEndpoint{}, nil
10 tlsConfig, err := s.tlsConfig(hostname)
15 endpoints = []APIEndpoint{
27 if tlsConfig.InsecureSkipVerify {
28 endpoints = append(endpoints, APIEndpoint{ // or this
35 // used to check if supposed to be secure via InsecureSkipVerify