mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user