From 8ebc7509e9bc459aee5e83c3ad1e8075a08421b0 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Thu, 3 Oct 2019 13:52:51 +0200 Subject: [PATCH] disabled ip block for ranking games - tesfor testing --- src/net/common/serverlobbythread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 1ab3de92..b16870f2 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1436,14 +1436,15 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr sessio SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_INVALID_PASSWORD); } else if (tmpData.gameType == GAME_TYPE_RANKING && !session->GetPlayerData()->IsPlayerAllowedToJoinCreateLimitRank(m_serverConfig.readConfigString("ServerLimitRankNum"), m_serverConfig.readConfigString("ServerLimitRankPeriod"))) { SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED); - } else if (tmpData.gameType == GAME_TYPE_RANKING && !joinGame.spectateonly() + } /* @TODO: ip block for ranking games - re-enable in productive + 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); - } else { + } */ else { MoveSessionToGame(game, session, joinGame.autoleave(), false); } }