mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-04-05 04:09:28 +00:00
PrimaryZone: updated GetZoneSoaMinimum() to get the minimum value only. Updated SetRecords() to use the minimum property directly.
This commit is contained in:
@@ -2374,12 +2374,7 @@ namespace DnsServerCore.Dns.Zones
|
||||
|
||||
private uint GetZoneSoaMinimum()
|
||||
{
|
||||
return GetZoneSoaMinimum(_entries[DnsResourceRecordType.SOA][0]);
|
||||
}
|
||||
|
||||
private uint GetZoneSoaMinimum(DnsResourceRecord soaRecord)
|
||||
{
|
||||
return Math.Min((soaRecord.RDATA as DnsSOARecordData).Minimum, soaRecord.OriginalTtlValue);
|
||||
return (_entries[DnsResourceRecordType.SOA][0].RDATA as DnsSOARecordData).Minimum;
|
||||
}
|
||||
|
||||
internal uint GetZoneSoaExpire()
|
||||
@@ -2590,9 +2585,7 @@ namespace DnsServerCore.Dns.Zones
|
||||
|
||||
CommitAndIncrementSerial();
|
||||
|
||||
uint newSoaMinimum = GetZoneSoaMinimum(soaRecord);
|
||||
|
||||
if (oldSoaMinimum != newSoaMinimum)
|
||||
if (oldSoaMinimum != soa.Minimum)
|
||||
{
|
||||
switch (_dnssecStatus)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user