Merge pull request #3 from Stone-Red-Code/develop

Fix linux active detection issue
This commit is contained in:
Stone_Red
2024-01-03 00:06:48 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ enclosed in quotation marks, you should use an editor that supports UTF-8, not t
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's <!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's
possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version
number is final, that is considered a released version and not a prerelease. --> number is final, that is considered a released version and not a prerelease. -->
<version>0.2.0.0</version> <version>0.2.0.20240103</version>
<!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl <!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl
is highly recommended for the community feed</packageSourceUrl>--> is highly recommended for the community feed</packageSourceUrl>-->
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for <!-- owners is a poor name for maintainers of the package. It sticks around by this name for
+1 -1
View File
@@ -1,5 +1,5 @@
name: arp-scanner # you probably want to 'snapcraft register <name>' name: arp-scanner # you probably want to 'snapcraft register <name>'
version: "0.2.0.0" # just for humans, typically '1.2+git' or '1.3.2' version: "0.2.0.20240103" # just for humans, typically '1.2+git' or '1.3.2'
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
summary: A lightweight cross-platform IP scanner # 79 char long summary summary: A lightweight cross-platform IP scanner # 79 char long summary
description: | description: |
+1 -1
View File
@@ -55,7 +55,7 @@ internal static class Program
} }
long localProcessedIpAddressesCount = Interlocked.Increment(ref processedIpAddressesCount); 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()); string formattedMac = BitConverter.ToString(mac.GetAddressBytes());