|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* MinIO Cloud Storage, (C) 2017, 2018, 2019 MinIO, Inc. |
|
|
|
* MinIO Cloud Storage, (C) 2017-2020 MinIO, Inc. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -89,8 +89,12 @@ func s3GatewayMain(ctx *cli.Context) { |
|
|
|
args = cli.Args{"https://s3.amazonaws.com"} |
|
|
|
args = cli.Args{"https://s3.amazonaws.com"} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
serverAddr := ctx.GlobalString("address") |
|
|
|
|
|
|
|
if serverAddr == "" || serverAddr == ":"+minio.GlobalMinioDefaultPort { |
|
|
|
|
|
|
|
serverAddr = ctx.String("address") |
|
|
|
|
|
|
|
} |
|
|
|
// Validate gateway arguments.
|
|
|
|
// Validate gateway arguments.
|
|
|
|
logger.FatalIf(minio.ValidateGatewayArguments(ctx.GlobalString("address"), args.First()), "Invalid argument") |
|
|
|
logger.FatalIf(minio.ValidateGatewayArguments(serverAddr, args.First()), "Invalid argument") |
|
|
|
|
|
|
|
|
|
|
|
// Start the gateway..
|
|
|
|
// Start the gateway..
|
|
|
|
minio.StartGateway(ctx, &S3{args.First()}) |
|
|
|
minio.StartGateway(ctx, &S3{args.First()}) |
|
|
|