Revert debug line

This commit is contained in:
Zoltan Papp
2023-04-26 15:45:18 +02:00
parent 49018a4a8e
commit 6630ec013d

View File

@@ -109,15 +109,10 @@ func (b *ICEBind) makeReceiveIPv4(c net.PacketConn) conn.ReceiveFunc {
if err != nil {
return 0, nil, err
}
e, err := netip.ParseAddrPort(endpoint.String())
if err != nil {
return 0, nil, err
}
if e.Port() == 51820 {
log.Debugf("received msg from 51820: %v, %d", e.String(), n)
}
if !stun.IsMessage(buff) {
// WireGuard traffic
return n, (conn.StdNetEndpoint)(netip.AddrPortFrom(e.Addr(), e.Port())), nil