Skip to content

Commit

Permalink
lib/smtp: set minimum Server TLS to v1.2
Browse files Browse the repository at this point in the history
Using the TLS v1.1 is considered insecure and should not be used in
server anymore.
  • Loading branch information
shuLhan committed Jul 21, 2023
1 parent c435600 commit 482ba1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smtp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func (srv *Server) initListener() (err error) {
Certificates: []tls.Certificate{
*srv.TLSCert,
},
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
}

if len(srv.tlsAddress) == 0 {
Expand Down

0 comments on commit 482ba1f

Please sign in to comment.