mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-05-20 01:56:07 +00:00
PrimaryZone: added tsig support.
This commit is contained in:
@@ -36,6 +36,7 @@ namespace DnsServerCore.Dns.Zones
|
||||
readonly bool _internal;
|
||||
|
||||
readonly List<DnsResourceRecord> _history; //for IXFR support
|
||||
IReadOnlyDictionary<string, string> _tsigKeys;
|
||||
|
||||
readonly Timer _notifyTimer;
|
||||
bool _notifyTimerTriggered;
|
||||
@@ -59,6 +60,8 @@ namespace DnsServerCore.Dns.Zones
|
||||
else
|
||||
_history = new List<DnsResourceRecord>(zoneInfo.ZoneHistory);
|
||||
|
||||
_tsigKeys = zoneInfo.TsigKeys;
|
||||
|
||||
_notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
|
||||
_notifyList = new List<NameServerAddress>();
|
||||
}
|
||||
@@ -467,6 +470,12 @@ namespace DnsServerCore.Dns.Zones
|
||||
}
|
||||
}
|
||||
|
||||
public IReadOnlyDictionary<string, string> TsigKeys
|
||||
{
|
||||
get { return _tsigKeys; }
|
||||
set { _tsigKeys = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user