refactor: move tlsdialer to netxlite (#404)
Part of https://github.com/ooni/probe/issues/1505
This commit is contained in:
@@ -102,8 +102,8 @@ func (d *Dialer) DialTLS(network, address string) (net.Conn, error) {
|
||||
// - SystemTLSHandshaker
|
||||
//
|
||||
// If you have others needs, manually build the chain you need.
|
||||
func newTLSDialer(d dialer.Dialer, config *tls.Config) tlsdialer.TLSDialer {
|
||||
return tlsdialer.TLSDialer{
|
||||
func newTLSDialer(d dialer.Dialer, config *tls.Config) *netxlite.TLSDialer {
|
||||
return &netxlite.TLSDialer{
|
||||
Config: config,
|
||||
Dialer: d,
|
||||
TLSHandshaker: tlsdialer.EmitterTLSHandshaker{
|
||||
|
||||
Reference in New Issue
Block a user