aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/serverLib/MainServer.js4
1 files changed, 3 insertions, 1 deletions
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);
}