From 4cb6e3534286819d3e11db7c3659164655020bd3 Mon Sep 17 00:00:00 2001 From: "A. Elleuch" Date: Tue, 12 Dec 2017 00:14:56 +0100 Subject: [PATCH] fix: Consider insecure flag in host add cmd (#2331) --insecure wasn't have an effect when invoked in a `mc host add` cmd. This PR fixes the behavior. --- cmd/config-host-add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/config-host-add.go b/cmd/config-host-add.go index b34355f0..044f5bbf 100644 --- a/cmd/config-host-add.go +++ b/cmd/config-host-add.go @@ -135,6 +135,7 @@ func newS3Config(args cli.Args) (*Config, *probe.Error) { // required in situations when signature type is provided by the user. if api != "" { return &Config{ + Insecure: globalInsecure, AccessKey: accessKey, SecretKey: secretKey, Signature: api, @@ -143,6 +144,7 @@ func newS3Config(args cli.Args) (*Config, *probe.Error) { } s3Config := &Config{ + Insecure: globalInsecure, AccessKey: accessKey, SecretKey: secretKey, Signature: "s3v4",