mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-21 21:59:11 +01:00
tlsconf: clear handshake deadline after completed handshake
This commit is contained in:
parent
7a75a4d384
commit
68b62a5c00
@ -70,6 +70,7 @@ func (l *ClientAuthListener) Accept() (c net.Conn, clientCN string, err error) {
|
||||
if err = tlsConn.Handshake(); err != nil {
|
||||
goto CloseAndErr
|
||||
}
|
||||
tlsConn.SetDeadline(time.Time{})
|
||||
|
||||
peerCerts = tlsConn.ConnectionState().PeerCertificates
|
||||
if len(peerCerts) != 1 {
|
||||
|
Loading…
Reference in New Issue
Block a user