From e7426133e212f7ad3d5de70cbe495a4f89373488 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 25 Oct 2021 21:03:51 +1100 Subject: [PATCH] Quote webrtc offer ID as ASCII-only --- webtorrent/tracker_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtorrent/tracker_client.go b/webtorrent/tracker_client.go index e6908c74..d75b9f9b 100644 --- a/webtorrent/tracker_client.go +++ b/webtorrent/tracker_client.go @@ -334,7 +334,7 @@ func (tc *TrackerClient) handleAnswer(offerId string, answer webrtc.SessionDescr defer tc.mu.Unlock() offer, ok := tc.outboundOffers[offerId] if !ok { - tc.Logger.WithDefaultLevel(log.Warning).Printf("could not find offer for id %q", offerId) + tc.Logger.WithDefaultLevel(log.Warning).Printf("could not find offer for id %+q", offerId) return } //tc.Logger.WithDefaultLevel(log.Debug).Printf("offer %q got answer %v", offerId, answer)