Skip to content

Commit

Permalink
fix handling of insecure flag
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Oct 20, 2023
1 parent 2091e9b commit 9559ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ca/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (ca *CA) Init(cfg *config.Config) (*CA, error) {
allInsecure = true
}

if allInsecure {
if !allInsecure {
tls, clientTLSConfig, err := ca.getTLSConfig(auth, cfg)
tlsConfig = tls
if err != nil {
Expand Down

0 comments on commit 9559ed3

Please sign in to comment.