8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8343404 commit f4c9dc2Copy full SHA for f4c9dc2
peer/conn.go
@@ -161,11 +161,15 @@ func (c *Conn) init() error {
161
if iceCandidate == nil {
162
return
163
}
164
- c.opts.Logger.Debug(context.Background(), "adding local candidate")
+ json := iceCandidate.ToJSON()
165
+ c.opts.Logger.Debug(context.Background(), "writing candidate to channel",
166
+ slog.F("hash", sha256.Sum224([]byte(json.Candidate))),
167
+ slog.F("length", len(json.Candidate)),
168
+ )
169
select {
170
case <-c.closed:
171
break
- case c.localCandidateChannel <- iceCandidate.ToJSON():
172
+ case c.localCandidateChannel <- json:
173
174
})
175
c.rtc.OnDataChannel(func(dc *webrtc.DataChannel) {
0 commit comments