fix golangci-lint timeout, bump email min TLS version
This commit is contained in:
committed by
Umputun
parent
593ca0387f
commit
36dce6c2ac
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user