Skip to content

Commit

Permalink
fix #nosec line placement
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Back <jonah@jonahback.com>
  • Loading branch information
backjo committed Jan 26, 2020
1 parent 9330efd commit a4cd78a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/config/tlscfg/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ func (p Options) Config() (*tls.Config, error) {
if err != nil {
return nil, errors.Wrap(err, "failed to load CA CertPool")
}

// #nosec G402
tlsCfg := &tls.Config{
RootCAs: certPool,
ServerName: p.ServerName,
// #nosec G402
InsecureSkipVerify: p.SkipHostVerify,
}

Expand Down

0 comments on commit a4cd78a

Please sign in to comment.