aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorx0vi <166640642+x0vi@users.noreply.github.com>2025-12-08 17:48:50 +0100
committerGitHub <noreply@github.com>2025-12-08 17:48:50 +0100
commit2940b28785c6a548414fd684941e29d1e3a5b2d9 (patch)
tree80f69a2ec785fc791e7c7581c370f805aec17895 /src/slskd/Core/Options.cs
parent15dee48db66f3bf0c8490aa1844bad0ba0371523 (diff)
parentf80fbac5eeda5901a106975446d0a11b7cbc38d6 (diff)
downloadslskd-2940b28785c6a548414fd684941e29d1e3a5b2d9.tar.gz
Merge branch 'master' into feature/configurable-ip-address
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index ab08be04..d3e302a5 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1252,6 +1252,12 @@ namespace slskd
return results;
}
+ if (string.IsNullOrWhiteSpace(File))
+ {
+ results.Add(new ValidationResult("The Enabled field is true, but no File has been specified."));
+ return results;
+ }
+
// loading/validating the entire list will be costly on low spec systems
// just make sure that we can detect a valid format and leave it at that
// if there's a problem with any of the entries, the load will fail and