diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-29 17:00:42 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-29 17:00:42 +0200 |
commit | ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a (patch) | |
tree | 0a129317dff233c3412505666de0757a503c0970 /server | |
parent | add ip check in chat and join (diff) | |
download | hackchat-ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a.tar.gz hackchat-ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a.zip |
print ip to debug
Diffstat (limited to 'server')
-rw-r--r-- | server/src/serverLib/MainServer.js | 2 |
1 files changed, 2 insertions, 0 deletions
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', |