mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-22 16:46:39 +00:00
AuthZoneManager: minor code refactoring.
This commit is contained in:
@@ -688,10 +688,10 @@ namespace DnsServerCore.Dns.ZoneManagers
|
||||
if (!dontRemoveRecords)
|
||||
{
|
||||
//remove domains that do not exists in new records
|
||||
foreach (string oldDomain in oldRecordsGroupedByDomain.Keys)
|
||||
foreach (KeyValuePair<string, Dictionary<DnsResourceRecordType, List<DnsResourceRecord>>> oldDomain in oldRecordsGroupedByDomain)
|
||||
{
|
||||
if (!newRecordsGroupedByDomain.ContainsKey(oldDomain))
|
||||
_root.TryRemove(oldDomain, out _);
|
||||
if (!newRecordsGroupedByDomain.ContainsKey(oldDomain.Key))
|
||||
_root.TryRemove(oldDomain.Key, out _);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user