From ee7fca754253e8575b59c5b49dacc1bd1315f806 Mon Sep 17 00:00:00 2001 From: smallwhite Date: Fri, 8 Nov 2019 10:36:27 +0800 Subject: [PATCH] temporary fix #1149 (cherry picked from commit 5b999c56c7244e23e5003878402a3c54ab51ed8c) --- lib/server/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/server/server.js b/lib/server/server.js index 8ba3e4683..b925fc25d 100644 --- a/lib/server/server.js +++ b/lib/server/server.js @@ -92,7 +92,11 @@ Server.prototype.globalHandle = function(msg, session, cb) { msg.route)); return; } - + if (routeRecord.method === 'constructor') { + logger.warn('attack session:', session, msg); + this.app.sessionService.kickBySessionId(session.id, 'attack'); + return; + } const self = this; const dispatch = (err, resp, opts) => { if (err) {