mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-30 05:18:18 +00:00
DnsResourceRecordInfo: Added validation for Comments.
This commit is contained in:
@@ -220,7 +220,13 @@ namespace DnsServerCore.Dns.ResourceRecords
|
||||
public string Comments
|
||||
{
|
||||
get { return _comments; }
|
||||
set { _comments = value; }
|
||||
set
|
||||
{
|
||||
if (value.Length > 255)
|
||||
throw new ArgumentOutOfRangeException(nameof(Comments), "Resource record comment text cannot exceed 255 characters.");
|
||||
|
||||
_comments = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime DeletedOn
|
||||
|
||||
Reference in New Issue
Block a user