bug fix (we have to compare the IP addresses, not the complete host addresses inclusive port number)

This commit is contained in:
Volker Fischer 2011-04-21 18:47:16 +00:00
parent 3a1c4510fa
commit 46b9d13274

View file

@ -220,7 +220,7 @@ void CServerListManager::QueryServerList ( const CHostAddress& InetAddr )
// he has to connect to the local host address, unfortunately, the
// port number is not known (because of NAT port translating) so we
// assume that it is the default llcon port number
if ( vecServerInfo[iIdx].HostAddr == InetAddr )
if ( vecServerInfo[iIdx].HostAddr.InetAddr == InetAddr.InetAddr )
{
vecServerInfo[iIdx].HostAddr.InetAddr.
setAddress ( QHostAddress::LocalHost );