Add gosec static analysis

This commit is contained in:
kolaente 2020-04-13 22:30:09 +02:00
parent fb8ac92abf
commit b8d7c97eb7
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
8 changed files with 16 additions and 9 deletions

View file

@ -42,6 +42,7 @@ func StartMailDaemon() {
go func() {
d := gomail.NewDialer(config.MailerHost.GetString(), config.MailerPort.GetInt(), config.MailerUsername.GetString(), config.MailerPassword.GetString())
// #nosec
d.TLSConfig = &tls.Config{InsecureSkipVerify: config.MailerSkipTLSVerify.GetBool()}
var s gomail.SendCloser