mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-28 10:44:24 +00:00
LogManager: added validation check for LogFolder property.
This commit is contained in:
@@ -806,6 +806,8 @@ namespace DnsServerCore
|
||||
|
||||
if (string.IsNullOrEmpty(value))
|
||||
logFolder = "logs";
|
||||
else if (value.Length > 255)
|
||||
throw new ArgumentException("Log folder path length cannot exceed 255 characters.", nameof(LogFolder));
|
||||
else
|
||||
logFolder = value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user