Skip to content

Commit 148a905

Browse files
committed
Fix error messages
1 parent 3172e05 commit 148a905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

candidate_base.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (c *candidateBase) handleInboundPacket(buf []byte, srcAddr net.Addr) {
263263
copy(m.Raw, buf)
264264

265265
if err := m.Decode(); err != nil {
266-
a.log.Warnf("Failed to handle decode ICE from %s to %s: %v", c.addr(), srcAddr, err)
266+
a.log.Warnf("Failed to handle decode ICE from %s to %s: %v", srcAddr, c.addr(), err)
267267
return
268268
}
269269

@@ -279,7 +279,7 @@ func (c *candidateBase) handleInboundPacket(buf []byte, srcAddr net.Addr) {
279279
if !c.validateSTUNTrafficCache(srcAddr) {
280280
remoteCandidate, valid := a.validateNonSTUNTraffic(c, srcAddr) //nolint:contextcheck
281281
if !valid {
282-
a.log.Warnf("Discarded message from %s, not a valid remote candidate", c.addr())
282+
a.log.Warnf("Discarded message to %s, not a valid remote candidate", c.addr())
283283
return
284284
}
285285
c.addRemoteCandidateCache(remoteCandidate, srcAddr)

0 commit comments

Comments
 (0)