Skip to content

Commit

Permalink
Grr
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Apr 11, 2024
1 parent 9ae6fc8 commit 04fadb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ArtNetSharp/ArtNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ private async Task StartListening()
UdpReceiveResult received = await _client.ReceiveAsync();

if (!IsInSubnet(LocalIpAddress, UnicastIPAddressInfo.IPv4Mask, received.RemoteEndPoint.Address))
{
Logger?.LogTrace($"Drop Packet Local:{LocalIpAddress}, Mask: {UnicastIPAddressInfo.IPv4Mask}, Remote: {received.RemoteEndPoint.Address}");
return;
}
if (Enabled)
ReceivedData?.Invoke(this, new Tuple<IPv4Address, UdpReceiveResult>(LocalIpAddress, received));
}
Expand Down Expand Up @@ -321,12 +324,12 @@ private void processPacket(AbstractArtPacketCore packet, IPv4Address localIp, IP
Logger?.LogWarning($"Received Non-Art-Net packet from {sourceIp}, discarding");
return;
}
#if DEBUG
//#if DEBUG
//if (IPv4Address.Equals(localIp, sourceIp))
// return;

Logger.LogTrace($"Received Packet from {sourceIp} -> {packet}");
#endif
//#endif
instances.ForEach(_instance => { ((IInstance)_instance).PacketReceived(packet, localIp, sourceIp); });
}

Expand Down

0 comments on commit 04fadb2

Please sign in to comment.