Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
temporary fix #1149
Browse files Browse the repository at this point in the history
  • Loading branch information
whtiehack authored Nov 8, 2019
1 parent c534727 commit 5b999c5
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 @@ -89,7 +89,11 @@ pro.globalHandle = function(msg, session, cb) {
utils.invokeCallback(cb, new Error('meet unknown route message %j', msg.route));
return;
}

if (routeRecord.method === 'constructor') {
logger.warn('attack session:', session, msg);
this.app.sessionService.kickBySessionId(session.id, 'attack');
return;
}
var self = this;
var dispatch = function(err, resp, opts) {
if(err) {
Expand Down

0 comments on commit 5b999c5

Please sign in to comment.