mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-05 16:24:52 +00:00
WebServiceZonesApi: fixed minor issue.
This commit is contained in:
@@ -1854,13 +1854,16 @@ namespace DnsServerCore
|
||||
|
||||
if (authoritativeZoneRecords)
|
||||
{
|
||||
foreach (DnssecPrivateKey dnssecPrivateKey in zoneInfo.DnssecPrivateKeys)
|
||||
if (zoneInfo.Type == AuthZoneType.Primary)
|
||||
{
|
||||
if (dnssecPrivateKey.KeyTag == rdata.ComputedKeyTag)
|
||||
foreach (DnssecPrivateKey dnssecPrivateKey in zoneInfo.DnssecPrivateKeys)
|
||||
{
|
||||
jsonWriter.WritePropertyName("dnsKeyState");
|
||||
jsonWriter.WriteValue(dnssecPrivateKey.State.ToString());
|
||||
break;
|
||||
if (dnssecPrivateKey.KeyTag == rdata.ComputedKeyTag)
|
||||
{
|
||||
jsonWriter.WritePropertyName("dnsKeyState");
|
||||
jsonWriter.WriteValue(dnssecPrivateKey.State.ToString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user