diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-24 22:11:53 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-24 22:11:53 +0200 |
commit | 0bfab3415d41598eccc78190604f33d613c57b05 (patch) | |
tree | 46cbfa10311bf9ed6f68b8025c4b5a605692da51 | |
parent | typo (diff) | |
download | hackchat-0bfab3415d41598eccc78190604f33d613c57b05.tar.gz hackchat-0bfab3415d41598eccc78190604f33d613c57b05.zip |
no rate limit for localhost
-rw-r--r-- | server/src/serverLib/MainServer.js | 4 |
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); } |