mirror of
https://github.com/minio/minio.git
synced 2025-11-11 06:20:14 -05:00
@@ -130,8 +130,13 @@ func isAzureMarker(marker string) bool {
|
||||
func azureGatewayMain(ctx *cli.Context) {
|
||||
// Validate gateway arguments.
|
||||
host := ctx.Args().First()
|
||||
|
||||
serverAddr := ctx.GlobalString("address")
|
||||
if serverAddr == "" || serverAddr == ":"+minio.GlobalMinioDefaultPort {
|
||||
serverAddr = ctx.String("address")
|
||||
}
|
||||
// Validate gateway arguments.
|
||||
logger.FatalIf(minio.ValidateGatewayArguments(ctx.GlobalString("address"), host), "Invalid argument")
|
||||
logger.FatalIf(minio.ValidateGatewayArguments(serverAddr, host), "Invalid argument")
|
||||
|
||||
minio.StartGateway(ctx, &Azure{host})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user