log tls error
This commit is contained in:
parent
ff8c3e915a
commit
77fe66c330
@ -42,6 +42,7 @@ func HandleStartTLS(conn net.Conn, config *tls.Config) (econn *textproto.Conn, s
|
|||||||
econn = textproto.NewConn(tconn)
|
econn = textproto.NewConn(tconn)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
log.Println("tls handshake error: ", err.Error())
|
||||||
certs := state.PeerCertificates
|
certs := state.PeerCertificates
|
||||||
if len(certs) == 0 {
|
if len(certs) == 0 {
|
||||||
log.Println("starttls failed, no peer certs provided")
|
log.Println("starttls failed, no peer certs provided")
|
||||||
|
Reference in New Issue
Block a user