From a8eaa849f2a9ffc8a60677c8ab308c1f140f63f7 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 3 Jan 2024 00:00:24 +0100 Subject: [PATCH] Fix active detection on linux --- src/ARP-Scanner/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ARP-Scanner/Program.cs b/src/ARP-Scanner/Program.cs index b304b3d..27f724b 100644 --- a/src/ARP-Scanner/Program.cs +++ b/src/ARP-Scanner/Program.cs @@ -55,7 +55,7 @@ internal static class Program } long localProcessedIpAddressesCount = Interlocked.Increment(ref processedIpAddressesCount); - if (mac is not null) + if (mac is not null && Array.Exists(mac.GetAddressBytes(), b => b != 0)) { string formattedMac = BitConverter.ToString(mac.GetAddressBytes());