archive
/
nntpchan
Archived
1
0
Fork 0

log tls error

This commit is contained in:
Jeff Becker 2020-03-07 09:05:21 -05:00
parent ff8c3e915a
commit 77fe66c330
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ func HandleStartTLS(conn net.Conn, config *tls.Config) (econn *textproto.Conn, s
econn = textproto.NewConn(tconn)
return
} else {
log.Println("tls handshake error: ", err.Error())
certs := state.PeerCertificates
if len(certs) == 0 {
log.Println("starttls failed, no peer certs provided")