diff options
| -rw-r--r-- | tools/Crupest.SecretTool/Crupest.SecretTool/HostMatchConfig.cs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/tools/Crupest.SecretTool/Crupest.SecretTool/HostMatchConfig.cs b/tools/Crupest.SecretTool/Crupest.SecretTool/HostMatchConfig.cs index 5cc0c3d..5d2c504 100644 --- a/tools/Crupest.SecretTool/Crupest.SecretTool/HostMatchConfig.cs +++ b/tools/Crupest.SecretTool/Crupest.SecretTool/HostMatchConfig.cs @@ -48,9 +48,10 @@ public class HostMatchConfig(string configString, List<HostMatchKind> allowedMat              foreach (var matchKind in Enum.GetValues<HostMatchKind>())              {                  var matchKindName = Enum.GetName(matchKind) ?? throw new Exception("No such match kind."); -                hasExplicitMatchKind = true;                  if (segments[0] == matchKindName)                  { +                    hasExplicitMatchKind = true; +                      if (segments.Count < 2)                      {                          throw new FormatException($"Explicit match item needs a value in line {lineNumber}."); | 
