Skip to content

Commit

Permalink
nosec G402 comment added to tlsConf to bypass errors of linter v1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir D committed Nov 28, 2023
1 parent 6fe9f00 commit 6f6fb2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (em *Sender) String() string {

func (em *Sender) client() (c *smtp.Client, err error) {
srvAddress := fmt.Sprintf("%s:%d", em.host, em.port)
// #nosec G402
tlsConf := &tls.Config{
InsecureSkipVerify: em.insecureSkipVerify, // #nosec G402
ServerName: em.host,
Expand Down

0 comments on commit 6f6fb2d

Please sign in to comment.