From a7756dabc1a1cbaed0fc30e911812f22fc8bbf7e Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Fri, 1 Oct 2021 12:39:46 +0800 Subject: [PATCH] Fix GetReservedPortRange --- Netch/Utils/PortHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))