Block duplicated IP for guests configurable

This commit is contained in:
Albert Medela
2016-08-04 21:34:38 +02:00
parent 4682b51e40
commit 6bd0808427
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1062,7 +1062,7 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr<SessionData> session, c
}
// check if a guest session in lobby with same ip is already connected and
// if number of lobby guests >= SERVER_MAX_GUEST_USERS_LOBBY
if(!m_sessionManager.IsGuestAllowedToConnect(session->GetClientAddr())) {
if(!m_sessionManager.IsGuestAllowedToConnect(session->GetClientAddr(), m_serverConfig.readConfigInt("ServerBlockGuestDuplicateIP"))) {
SessionError(session, ERR_NET_SERVER_FULL);
return;
}