fix serialization of connection ID in filenames of qlog files (#4170)

This commit is contained in:
Marten Seemann 2023-11-17 07:06:42 +01:00 committed by GitHub
parent 427f53328b
commit 96ab48eb7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -164,7 +164,7 @@ func main() {
quicConf := &quic.Config{}
if *enableQlog {
quicConf.Tracer = func(ctx context.Context, p logging.Perspective, connID quic.ConnectionID) *logging.ConnectionTracer {
filename := fmt.Sprintf("server_%x.qlog", connID)
filename := fmt.Sprintf("server_%s.qlog", connID)
f, err := os.Create(filename)
if err != nil {
log.Fatal(err)