From 0bfab3415d41598eccc78190604f33d613c57b05 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Fri, 24 Apr 2020 22:11:53 +0200 Subject: no rate limit for localhost --- server/src/serverLib/MainServer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/serverLib/MainServer.js b/server/src/serverLib/MainServer.js index e2f62a5..ae26be3 100644 --- a/server/src/serverLib/MainServer.js +++ b/server/src/serverLib/MainServer.js @@ -164,7 +164,9 @@ class MainServer extends WsServer { } // Penalize here, but don't do anything about it - if (!socket.mod) { + // Don't penalize localhost for bots + if (socket.address == "localhost" || socket.address == "127.0.0.1") { + } else { this.police.frisk(socket.address, 1); } -- cgit v1.2.1