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
+1 -1
View File
@@ -145,7 +145,7 @@ func handleCommonCmdArgs(ctx *cli.Context) {
// Fetch address option
globalCLIContext.Addr = ctx.GlobalString("address")
if globalCLIContext.Addr == "" || globalCLIContext.Addr == ":"+globalMinioDefaultPort {
if globalCLIContext.Addr == "" || globalCLIContext.Addr == ":"+GlobalMinioDefaultPort {
globalCLIContext.Addr = ctx.String("address")
}