From ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Wed, 29 Apr 2020 17:00:42 +0200 Subject: print ip to debug --- server/src/serverLib/MainServer.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/src/serverLib/MainServer.js b/server/src/serverLib/MainServer.js index db027a5..18f111d 100644 --- a/server/src/serverLib/MainServer.js +++ b/server/src/serverLib/MainServer.js @@ -153,6 +153,8 @@ class MainServer extends WsServer { */ handleData(socket, data) { // Don't penalize yet, but check whether IP is rate-limited + console.log(socket.address) + console.error(socker.address) if (this.police.frisk(socket.address, 0) && socket.address != "::ffff:172.18.0.1") { this.core.commands.handleCommand(this, socket, { cmd: 'socketreply', -- cgit v1.2.1