mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-08 17:54:02 +00:00
fixed issue that got added earlier.
This commit is contained in:
@@ -2017,9 +2017,6 @@ namespace DnsServerCore
|
||||
if (string.IsNullOrEmpty(domain))
|
||||
throw new DnsWebServiceException("Parameter 'domain' missing.");
|
||||
|
||||
if (!_dnsServer.AuthoritativeZoneRoot.DeleteZone(domain, false))
|
||||
throw new DnsWebServiceException("Zone '" + domain + "' was not found.");
|
||||
|
||||
_dnsServer.AuthoritativeZoneRoot.EnableZone(domain);
|
||||
|
||||
_log.Write(GetRequestRemoteEndPoint(request), true, "[" + GetSession(request).Username + "] Authoritative zone was enabled: " + domain);
|
||||
@@ -2033,9 +2030,6 @@ namespace DnsServerCore
|
||||
if (string.IsNullOrEmpty(domain))
|
||||
throw new DnsWebServiceException("Parameter 'domain' missing.");
|
||||
|
||||
if (!_dnsServer.AuthoritativeZoneRoot.DeleteZone(domain, false))
|
||||
throw new DnsWebServiceException("Zone '" + domain + "' was not found.");
|
||||
|
||||
_dnsServer.AuthoritativeZoneRoot.DisableZone(domain);
|
||||
|
||||
_log.Write(GetRequestRemoteEndPoint(request), true, "[" + GetSession(request).Username + "] Authoritative zone was disabled: " + domain);
|
||||
|
||||
Reference in New Issue
Block a user