forked from quic-go/quic-go
replace the GetLogWriter quic.Config option by a Tracer interface
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/lucas-clemente/quic-go/internal/testdata"
|
||||
"github.com/lucas-clemente/quic-go/interop/http09"
|
||||
"github.com/lucas-clemente/quic-go/interop/utils"
|
||||
"github.com/lucas-clemente/quic-go/qlog"
|
||||
)
|
||||
|
||||
var tlsConf *tls.Config
|
||||
@@ -44,8 +45,8 @@ func main() {
|
||||
}
|
||||
// a quic.Config that doesn't do a Retry
|
||||
quicConf := &quic.Config{
|
||||
AcceptToken: func(_ net.Addr, _ *quic.Token) bool { return true },
|
||||
GetLogWriter: getLogWriter,
|
||||
AcceptToken: func(_ net.Addr, _ *quic.Token) bool { return true },
|
||||
Tracer: qlog.NewTracer(getLogWriter),
|
||||
}
|
||||
tlsConf = testdata.GetTLSConfig()
|
||||
tlsConf.KeyLogWriter = keyLog
|
||||
|
||||
Reference in New Issue
Block a user