aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-04-29 17:00:42 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-04-29 17:00:42 +0200
commitceb5deaf3933825a7ec1812d9b70ad5ca2e5579a (patch)
tree0a129317dff233c3412505666de0757a503c0970 /server
parentadd ip check in chat and join (diff)
downloadhackchat-ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a.tar.gz
hackchat-ceb5deaf3933825a7ec1812d9b70ad5ca2e5579a.zip
print ip to debug
Diffstat (limited to 'server')
-rw-r--r--server/src/serverLib/MainServer.js2
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',