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 authored and Ovahlord committed 2020-07-07 02:39:07 +02:00
1 parent d077c92011
commit 750ff8f3ce
1 file changed
+1 -3
+1 -3
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);
}