From 0945e3b8721266341e904c34cffcbe7f5c08b56d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 17 Nov 2015 18:15:49 -0800 Subject: [PATCH] local: alias localhost:9000 - fixes #1383 --- config.go | 2 +- mc_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")