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
|
||||
}
|
||||
httpTransport := &http.Transport{
|
||||
Dial: httpDial,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
Dial: httpDial,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
client := &http.Client{Transport: httpTransport}
|
||||
resp, err := client.Get(endpoint + "_ping")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue