mirror of
https://github.com/ngrok/ngrok-go.git
synced 2026-05-17 16:50:45 +00:00
keep old tls client connection code
This commit is contained in:
+1
-6
@@ -142,12 +142,7 @@ func (e *endpointForwarder) connectToBackend(ctx context.Context) (net.Conn, err
|
||||
config.NextProtos = append(config.NextProtos, "h2", "http/1.1")
|
||||
}
|
||||
|
||||
tlsConn := tls.Client(conn, config)
|
||||
if err := tlsConn.HandshakeContext(ctx); err != nil {
|
||||
_ = conn.Close()
|
||||
return nil, err
|
||||
}
|
||||
return tlsConn, nil
|
||||
return tls.Client(conn, config), nil
|
||||
}
|
||||
|
||||
return conn, nil
|
||||
|
||||
Reference in New Issue
Block a user