mirror of
https://github.com/netbirdio/netbird.git
synced 2025-07-01 07:00:46 +02:00
Proper endpoint log
This commit is contained in:
@ -126,7 +126,7 @@ func (b *ICEBind) makeReceiveIPv4(c net.PacketConn, bindMux BindMux) conn.Receiv
|
|||||||
b.mu.Lock()
|
b.mu.Lock()
|
||||||
if _, ok := b.endpointMap[e.String()]; !ok {
|
if _, ok := b.endpointMap[e.String()]; !ok {
|
||||||
b.endpointMap[e.String()] = c
|
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()
|
b.mu.Unlock()
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ func (b *ICEBind) Send(buff []byte, endpoint conn.Endpoint) error {
|
|||||||
b.mu.Unlock()
|
b.mu.Unlock()
|
||||||
if co == nil {
|
if co == nil {
|
||||||
// todo proper handling
|
// 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
|
return conn.ErrWrongEndpointType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user