Skip to content

Commit

Permalink
Minor: add h, this commit is worthless, do not read
Browse files Browse the repository at this point in the history
Told you.
  • Loading branch information
hakusaro committed Jun 19, 2021
1 parent eb97bdd commit 9c748ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TShockAPI/Rest/SecureRest.cs
Expand Up @@ -117,7 +117,7 @@ private RestObject NewTokenInternal(string username, string password, IHttpConte
{
if (tokens >= TShock.Config.Settings.RESTMaximumRequestsPerInterval)
{
TShock.Log.ConsoleError("A REST login from {0} was blocked as it currently has {1} rate-limit tokens and is at the RESTMaximumRequestsPerInterval thresold.", context.RemoteEndPoint.Address.ToString(), tokens);
TShock.Log.ConsoleError("A REST login from {0} was blocked as it currently has {1} rate-limit tokens and is at the RESTMaximumRequestsPerInterval threshold.", context.RemoteEndPoint.Address.ToString(), tokens);
tokenBucket[context.RemoteEndPoint.Address.ToString()] += 1; // Tokens over limit, increment by one and reject request
return new RestObject("403")
{
Expand Down

0 comments on commit 9c748ab

Please sign in to comment.