diff --git a/Netch/Utils/PortHelper.cs b/Netch/Utils/PortHelper.cs index f0bf5757..d5a62638 100644 --- a/Netch/Utils/PortHelper.cs +++ b/Netch/Utils/PortHelper.cs @@ -86,7 +86,7 @@ namespace Netch.Utils foreach (var line in output.SplitRemoveEmptyEntriesAndTrimEntries('\n')) { var value = line.Trim().SplitRemoveEmptyEntries(' '); - if (value.Length != 2) + if (value.Length < 2) continue; if (!ushort.TryParse(value[0], out var start) || !ushort.TryParse(value[1], out var end))