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
|
|
@ -135,6 +135,7 @@ func (d *quicDialerQUICGo) DialContext(ctx context.Context, network string,
|
|||
}
|
||||
tlsConfig = d.maybeApplyTLSDefaults(tlsConfig, udpAddr.Port)
|
||||
trace := ContextTraceOrDefault(ctx)
|
||||
pconn = trace.MaybeWrapUDPLikeConn(pconn)
|
||||
started := trace.TimeNow()
|
||||
trace.OnQUICHandshakeStart(started, address, quicConfig)
|
||||
qconn, err := d.dialEarlyContext(
|
||||
|
|
|
|||
Loading…
Reference in a new issue