From 73b5f8d63ba15c2a6340e76b5948bc2077d04969 Mon Sep 17 00:00:00 2001 From: braginini Date: Tue, 6 Sep 2022 20:59:19 +0200 Subject: [PATCH] Proper endpoint log --- iface/bind.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iface/bind.go b/iface/bind.go index 5be9a8fc6..09160d5bd 100644 --- a/iface/bind.go +++ b/iface/bind.go @@ -126,7 +126,7 @@ func (b *ICEBind) makeReceiveIPv4(c net.PacketConn, bindMux BindMux) conn.Receiv b.mu.Lock() if _, ok := b.endpointMap[e.String()]; !ok { b.endpointMap[e.String()] = c - log.Infof("added %s endpoint %s", bindMux.Type(), e.Addr().String()) + log.Infof("added %s endpoint %s", bindMux.Type(), e.String()) } b.mu.Unlock() @@ -203,7 +203,7 @@ func (b *ICEBind) Send(buff []byte, endpoint conn.Endpoint) error { b.mu.Unlock() if co == nil { // todo proper handling - log.Warnf("conn not found for endpoint %s", endpoint.DstToString()) + log.Warnf("conn not found for endpoint %s", (*net.UDPAddr)(nend).String()) return conn.ErrWrongEndpointType }