From 6c10632901265d7d98c3d2562e73859621f14705 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 8 Jul 2015 21:46:26 -0700 Subject: [PATCH] Let localhost also have its access keys and secret id --- hostconfig.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hostconfig.go b/hostconfig.go index 5a716d6f..20afdba6 100644 --- a/hostconfig.go +++ b/hostconfig.go @@ -47,9 +47,8 @@ func getHostConfig(URL string) (*hostConfig, error) { } return hostCfg, nil } - - // No host matching or keys needed for localhost and 127.0.0.1 URL's skip them - if strings.Contains(url.Host, "localhost") || strings.Contains(url.Host, "127.0.0.1") { + // No host matching or keys needed for 127.0.0.1 URL's skip them + if strings.Contains(url.Host, "127.0.0.1") { hostCfg := &hostConfig{ AccessKeyID: "", SecretAccessKey: "",