Fixing retrieval of remote webclient address for login blocker.

This commit is contained in:
lotodore
2013-09-16 22:33:52 +02:00
parent cc386419d2
commit 496a668a15
2 changed files with 5 additions and 3 deletions
-2
View File
@@ -282,11 +282,9 @@ ServerLobbyThread::AddConnection(boost::shared_ptr<SessionData> sessionData)
unsigned numGameSessions = m_gameSessionManager.GetRawSessionCount();
if (numLobbySessions <= SERVER_MAX_NUM_LOBBY_SESSIONS
&& numLobbySessions + numGameSessions <= SERVER_MAX_NUM_TOTAL_SESSIONS) {
bool hasClientIp = false;
string ipAddress = sessionData->GetRemoteIPAddressFromSocket();
if (!ipAddress.empty()) {
sessionData->SetClientAddr(ipAddress);
hasClientIp = true;
boost::shared_ptr<NetPacket> packet(new NetPacket);
packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AnnounceMessage);