Skip to content

Commit ec6cfc9

Browse files
authored
Fixes undercollection of TCP ports on Linux (#146)
1 parent c8af4bc commit ec6cfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/Collectors/OpenPorts/OpenPortCollector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private void ExecuteLinux()
182182
continue;
183183
}
184184
var parts = Regex.Split(line, @"\s+");
185-
if (parts.Length <= 7)
185+
if (parts.Length < 5)
186186
{
187187
continue; // Not long enough, must be an error
188188
}

0 commit comments

Comments
 (0)