mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
Proper endpoint log
This commit is contained in:
parent
6653894691
commit
73b5f8d63b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user