refactor: allow automatically wrap net/quic conn (#867)
See https://github.com/ooni/probe/issues/2219
This commit is contained in:
parent
e1d014e826
commit
097926c51f
12 changed files with 83 additions and 101 deletions
|
|
@ -224,7 +224,7 @@ func (d *dialerResolverWithTracing) DialContext(ctx context.Context, network, ad
|
|||
trace.OnConnectDone(started, network, onlyhost, target, err, finished)
|
||||
if err == nil {
|
||||
conn = &dialerErrWrapperConn{conn}
|
||||
return conn, nil
|
||||
return trace.MaybeWrapNetConn(conn), nil
|
||||
}
|
||||
errorslist = append(errorslist, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue