mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use https to get the latest docker version
To avoid unexpected results since docker was using http. For instance, my broadband doesn't return not found when it's down but a html page saying that the internet is down. Docker was showing that html instead of ignoring it. Fix #3570 Docker-DCO-1.1-Signed-off-by: Fabio Falci <fabiofalci@gmail.com> (github: fabiofalci)
This commit is contained in:
parent
6652416f4c
commit
89bed4337d
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ func ParseHost(defaultHost string, defaultPort int, defaultUnix, addr string) (s
|
|||
}
|
||||
|
||||
func GetReleaseVersion() string {
|
||||
resp, err := http.Get("http://get.docker.io/latest")
|
||||
resp, err := http.Get("https://get.docker.io/latest")
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue