From 3bd5286521b80164077ff1c5a45eb2c7af5c5cf5 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Mon, 28 Nov 2016 00:05:36 +0100 Subject: [PATCH] re-enabled ip restriction for ranking games --- src/net/common/serverlobbythread.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 65b9d8bb..0703123d 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1397,15 +1397,13 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr sessio SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_NOT_INVITED); } else if (!game->CheckPassword(password)) { SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_INVALID_PASSWORD); - /* @FIXME: temporary disabling ip-check for entering ranking-games */ } else if (tmpData.gameType == GAME_TYPE_RANKING && !joinGame.spectateonly() && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4V6 && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4 && game->IsClientAddressConnected(session->GetClientAddr())) { - // SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED); - MoveSessionToGame(game, session, joinGame.autoleave(), false); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED); } else { MoveSessionToGame(game, session, joinGame.autoleave(), false);