mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-02 06:47:50 +00:00
WebServiceAppsApi: updated SetAppConfigAsync() to log config saved message and throw new error when post parameter is missing.
This commit is contained in:
@@ -565,9 +565,13 @@ namespace DnsServerCore
|
||||
config = null;
|
||||
|
||||
await application.SetConfigAsync(config);
|
||||
break;
|
||||
|
||||
_dnsWebService.Log.Write(DnsWebService.GetRequestRemoteEndPoint(request), "[" + _dnsWebService.GetSession(request).Username + "] DNS application '" + name + "' app config was saved successfully.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
throw new DnsWebServiceException("Missing POST parameter: config");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user