Skip to content

Commit

Permalink
Explicitly call handshake for tls connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikPelli committed Jan 12, 2025
1 parent f8c3810 commit 95e0f0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion https.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,5 +651,9 @@ func (proxy *ProxyHttpServer) initializeTLSconnection(
if ctx.InitializeTLS != nil {
return ctx.InitializeTLS(targetConn, tlsConfig)
}
return tls.Client(targetConn, tlsConfig), nil
tlsConn := tls.Client(targetConn, tlsConfig)
if err := tlsConn.Handshake(); err != nil {
return nil, err
}
return tlsConn, nil
}

0 comments on commit 95e0f0e

Please sign in to comment.