diff --git a/cmd/configure.go b/cmd/configure.go index 0eae650..d08afcf 100644 --- a/cmd/configure.go +++ b/cmd/configure.go @@ -45,8 +45,10 @@ func init() { } func configureCmdRun(cmd *cobra.Command, args []string) { - http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{ - InsecureSkipVerify: true, + if configureArgs.AllowInsecure { + http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{ + InsecureSkipVerify: true, + } } if _, err := os.Stat("config.yml"); err == nil && !configureArgs.Override {