Core/Battle.net: Only send one IP address for a realm - fixes waiting time to join realm if the wrong address gets picked by the client first (local address for external client)

This commit is contained in:
Shauren
2020-07-07 02:00:42 +02:00
committed by Ovahlord
parent d077c92011
commit 750ff8f3ce

View File

@@ -506,9 +506,7 @@ void Battlenet::Session::HandleJoinRequestV2(WoWRealm::JoinRequestV2 const& join
stmt->setString(4, _gameAccountInfo->Name);
LoginDatabase.DirectExecute(stmt);
joinResponse->IPv4.emplace_back(*realm->ExternalAddress, realm->Port);
if (*realm->ExternalAddress != *realm->LocalAddress)
joinResponse->IPv4.emplace_back(*realm->LocalAddress, realm->Port);
joinResponse->IPv4.push_back(realm->GetAddressForClient(GetRemoteIpAddress()));
AsyncWrite(joinResponse);
}