This commit is contained in:
2020-06-10 13:53:59 +00:00
parent 4b876f54ca
commit 7ffee42684
5 changed files with 22 additions and 7 deletions

View File

@@ -44,8 +44,9 @@ namespace AyaNova.Api.Controllers
public ActionResult GetPreLoginPing()
{
//note: this route is called by the client as the first action so it also acts like a ping to see if the server is up as well
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
// if (serverState.IsClosed)
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
//todo: check this route for dos attack potential??
return Ok(ApiOkResponse.Response(!AyaNova.Core.License.ActiveKey.TrialLicense));
}