code: func (s *DefaultService) tlsConfig(hostname string) (*tls.Config, error) {
  	return newTLSConfig(hostname, isSecureIndex(s.config, hostname))
  }
docs: // tlsConfig constructs a client TLS configuration based on server defaults