mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-03-03 20:26:25 +00:00
ZoneTree: updated FindZone() to clear closestSubDomain when closestAuthority value changes.
This commit is contained in:
@@ -249,6 +249,7 @@ namespace DnsServerCore.Dns.Trees
|
||||
closestAuthority = authority;
|
||||
closestAuthorityNode = currentNode;
|
||||
|
||||
closestSubDomain = null; //clear previous closest sub domain
|
||||
wildcard = null; //clear previous wildcard node
|
||||
}
|
||||
}
|
||||
@@ -320,6 +321,8 @@ namespace DnsServerCore.Dns.Trees
|
||||
{
|
||||
closestAuthority = authority;
|
||||
closestAuthorityNode = currentNode;
|
||||
|
||||
closestSubDomain = null; //clear previous closest sub domain
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,6 +382,8 @@ namespace DnsServerCore.Dns.Trees
|
||||
{
|
||||
closestAuthority = authority;
|
||||
closestAuthorityNode = currentNode;
|
||||
|
||||
closestSubDomain = null; //clear previous closest sub domain
|
||||
}
|
||||
}
|
||||
|
||||
@@ -412,6 +417,8 @@ namespace DnsServerCore.Dns.Trees
|
||||
{
|
||||
closestAuthority = authority;
|
||||
closestAuthorityNode = currentNode;
|
||||
|
||||
closestSubDomain = null; //clear previous closest sub domain
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user