Docker-DCO-1.1-Signed-off-by: Ryan Thomas <rthomas@atlassian.com> (github: rthomas)

This commit is contained in:
Ryan Thomas 2014-03-28 06:31:04 +11:00
parent fffa920a89
commit 50ec0bbd4e

View file

@ -42,9 +42,9 @@ func pingRegistryEndpoint(endpoint string) (bool, error) {
return conn, nil return conn, nil
} }
httpTransport := &http.Transport{ httpTransport := &http.Transport{
Dial: httpDial, Dial: httpDial,
Proxy: http.ProxyFromEnvironment, Proxy: http.ProxyFromEnvironment,
} }
client := &http.Client{Transport: httpTransport} client := &http.Client{Transport: httpTransport}
resp, err := client.Get(endpoint + "_ping") resp, err := client.Get(endpoint + "_ping")
if err != nil { if err != nil {