Check for address flags in all positions (#9615)

Fixes #9599
This commit is contained in:
kannappanr
2020-05-17 08:46:23 -07:00
committed by GitHub
parent 011a2c0b78
commit a62572fb86
5 changed files with 16 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ import (
// minio configuration related constants.
const (
globalMinioDefaultPort = "9000"
GlobalMinioDefaultPort = "9000"
globalMinioDefaultRegion = ""
// This is a sha256 output of ``arn:aws:iam::minio:user/admin``,
@@ -133,7 +133,7 @@ var (
// MinIO local server address (in `host:port` format)
globalMinioAddr = ""
// MinIO default port, can be changed through command line.
globalMinioPort = globalMinioDefaultPort
globalMinioPort = GlobalMinioDefaultPort
// Holds the host that was passed using --address
globalMinioHost = ""
// Holds the possible host endpoint.