Only allow insecure if configured
This commit is contained in:
parent
70a647097e
commit
5c4064f87a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user