Skip to content

Commit

Permalink
temporary fix NetEase#1149
Browse files Browse the repository at this point in the history
(cherry picked from commit 5b999c5)
  • Loading branch information
whtiehack authored and henrod committed Mar 26, 2020
1 parent f214510 commit ee7fca7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ee7fca7

Please sign in to comment.