set tls version to 1.2
This commit is contained in:
@@ -59,6 +59,7 @@ func send(subject, body, recipient string) bool {
|
|||||||
// Create TLS connection
|
// Create TLS connection
|
||||||
tlsconfig := &tls.Config{
|
tlsconfig := &tls.Config{
|
||||||
ServerName: cfg.SMTPServer,
|
ServerName: cfg.SMTPServer,
|
||||||
|
MinVersion: tls.VersionTLS12
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := tls.Dial("tcp", addr, tlsconfig)
|
conn, err := tls.Dial("tcp", addr, tlsconfig)
|
||||||
|
|||||||
Reference in New Issue
Block a user