fix golangci-lint timeout, bump email min TLS version

This commit is contained in:
Dmitry Verkhoturov
2020-10-07 19:32:39 -05:00
committed by Umputun
parent 593ca0387f
commit 36dce6c2ac
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
run:
timeout: 5m
output:
format: tab
skip-dirs:
@@ -74,4 +75,4 @@ issues:
exclude-use-default: false
service:
golangci-lint-version: 1.23.x
golangci-lint-version: 1.31.x
+1
View File
@@ -379,6 +379,7 @@ func (s *emailClient) Create(params SMTPParams) (smtpClient, error) {
tlsConf := &tls.Config{
InsecureSkipVerify: false,
ServerName: params.Host,
MinVersion: tls.VersionTLS12,
}
conn, err := tls.Dial("tcp", srvAddress, tlsConf)
if err != nil {