From de376f31d98788c0230b533153420424b2cd9b57 Mon Sep 17 00:00:00 2001 From: Lachlan Donald Date: Mon, 12 Oct 2015 08:48:24 +1100 Subject: [PATCH] Added protocol to http_proxy, fixes #33 --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index b3f90914a..69ba2a150 100644 --- a/exec.go +++ b/exec.go @@ -61,7 +61,7 @@ func ExecCommand(ui Ui, input ExecCommandInput) { } env := os.Environ() - env = overwriteEnv(env, "http_proxy", l.Addr().String()) + env = overwriteEnv(env, "http_proxy", "http://"+l.Addr().String()) env = overwriteEnv(env, "no_proxy", "amazonaws.com") env = overwriteEnv(env, "AWS_CONFIG_FILE", cfg.Name()) env = overwriteEnv(env, "AWS_DEFAULT_PROFILE", input.Profile)