getTime() instead of getDate()
This commit is contained in:
@@ -67,7 +67,7 @@ export class Webserver {
|
||||
|
||||
const entry = this.addressCounter.get(address);
|
||||
if (entry !== undefined) {
|
||||
if (entry.getDate() + 24 * 3600 > Date.now()) {
|
||||
if (entry.getTime() + 24 * 3600 > Date.now()) {
|
||||
throw new HttpError(
|
||||
405,
|
||||
"Too many request from the same address. Blocked to prevent draining. Please wait 24h and try it again!",
|
||||
|
||||
Reference in New Issue
Block a user