mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Docker-DCO-1.1-Signed-off-by: Ryan Thomas <rthomas@atlassian.com> (github: rthomas)
This commit is contained in:
parent
a5ccb5b28d
commit
d6c2188cae
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue