From 89bed4337d2314c3ffaac231c141b635ecc65ac5 Mon Sep 17 00:00:00 2001 From: Fabio Falci Date: Mon, 13 Jan 2014 20:28:30 +0000 Subject: [PATCH] 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 (github: fabiofalci) --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 4dfadb793f..e046dfa2a5 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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 "" }