aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-04-26 13:15:20 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-04-26 13:15:20 +0200
commit9473b849862edfb5bb6225872a2ac69b7c92d3c4 (patch)
treeeb8d24412e477a798beed0eedf9feaf619c3384b /server/src
parenttest for whitelist localhost (diff)
downloadhackchat-9473b849862edfb5bb6225872a2ac69b7c92d3c4.tar.gz
hackchat-9473b849862edfb5bb6225872a2ac69b7c92d3c4.zip
remove save to file to log
Diffstat (limited to 'server/src')
-rw-r--r--server/src/serverLib/MainServer.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/serverLib/MainServer.js b/server/src/serverLib/MainServer.js
index 4d58e87..fcdd328 100644
--- a/server/src/serverLib/MainServer.js
+++ b/server/src/serverLib/MainServer.js
@@ -153,10 +153,8 @@ class MainServer extends WsServer {
*/
handleData(socket, data) {
// Don't penalize yet, but check whether IP is rate-limited
- var blob = new Blob([socket.address],
- { type: "text/plain;charset=utf-8" });
- saveAs(blob, "/tmp/test.txt");
-
+ console.log(socket.address)
+ console.error(socket.address)
if (this.police.frisk(socket.address, 0) && socket.address.split(/\s*,\s*/)[0] != "127.0.0.1") {
this.core.commands.handleCommand(this, socket, {
cmd: 'socketreply',