diff --git a/config.go b/config.go index ce98f30d..7be5e9dd 100644 --- a/config.go +++ b/config.go @@ -225,7 +225,7 @@ func newConfigV6() *configV6 { aliases["dl"] = "https://dl.minio.io:9000" aliases["gcs"] = "https://storage.googleapis.com" aliases["play"] = "https://play.minio.io:9000" - aliases["localhost"] = "http://localhost:9000" + aliases["local"] = "http://localhost:9000" conf.Aliases = aliases return conf } diff --git a/mc_test.go b/mc_test.go index 7543350b..964ef146 100644 --- a/mc_test.go +++ b/mc_test.go @@ -137,7 +137,7 @@ func (s *TestSuite) TestNewConfigV6(c *C) { "https://play.minio.io:9000", }, { - "localhost", + "local", "http://localhost:9000", }, } @@ -182,7 +182,7 @@ func (s *TestSuite) TestHostConfig(c *C) { } func (s *TestSuite) TestArgs2URL(c *C) { - URLs := []string{"localhost", "s3", "play", "playgo", "play.go", "https://s3-us-west-2.amazonaws.com"} + URLs := []string{"local", "s3", "play", "playgo", "play.go", "https://s3-us-west-2.amazonaws.com"} expandedURLs, err := args2URLs(URLs) c.Assert(err, IsNil) c.Assert(expandedURLs[0], Equals, "http://localhost:9000")