Skip to content

Commit

Permalink
Merge pull request #1076 from lshqqytiger/banfix1
Browse files Browse the repository at this point in the history
차단 기능의 버그 해결
  • Loading branch information
JJoriping authored Mar 26, 2023
2 parents 9552e33 + 7400d0c commit a2c240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/lib/Game/slave.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Server.on('connection', function(socket, info){
$c.remoteAddress = GLOBAL.USER_BLOCK_OPTIONS.USE_X_FORWARDED_FOR ? info.connection.remoteAddress : (info.headers['x-forwarded-for'] || info.connection.remoteAddress);
if(GLOBAL.USER_BLOCK_OPTIONS.USE_MODULE && ((GLOBAL.USER_BLOCK_OPTIONS.BLOCK_IP_ONLY_FOR_GUEST && $c.guest) || !GLOBAL.USER_BLOCK_OPTIONS.BLOCK_IP_ONLY_FOR_GUEST)){
MainDB.ip_block.findOne([ '_id', $c.remoteAddress ]).on(function($body){
if ($body.reasonBlocked) {
if ($body && $body.reasonBlocked) {
$c.socket.send(JSON.stringify({
type: 'error',
code: 446,
Expand Down

0 comments on commit a2c240b

Please sign in to comment.