mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-04-23 21:13:31 +00:00
DnsServerInternal: updated code to return new cache object to skip authoritative request handler calls.
This commit is contained in:
@@ -34,6 +34,8 @@ namespace DnsServerCore.Dns.Applications
|
||||
readonly string _applicationName;
|
||||
readonly string _applicationFolder;
|
||||
|
||||
IDnsCache _dnsCache;
|
||||
|
||||
#endregion
|
||||
|
||||
#region constructor
|
||||
@@ -88,7 +90,15 @@ namespace DnsServerCore.Dns.Applications
|
||||
{ get { return _dnsServer.ServerDomain; } }
|
||||
|
||||
public IDnsCache DnsCache
|
||||
{ get { return _dnsServer.DnsCache; } }
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_dnsCache is null)
|
||||
_dnsCache = new ResolverDnsCache(_dnsServer.DnsApplicationManager, _dnsServer.AuthZoneManager, _dnsServer.CacheZoneManager, _dnsServer.LogManager, true);
|
||||
|
||||
return _dnsCache;
|
||||
}
|
||||
}
|
||||
|
||||
public NetProxy Proxy
|
||||
{ get { return _dnsServer.Proxy; } }
|
||||
|
||||
Reference in New Issue
Block a user