(svn r15932) -Codechange: show ip:port as (fallback) servername instead of only the ip. This way you can clearly see there aren't any duplicates.

This commit is contained in:
rubidium 2009-04-03 12:54:38 +00:00
parent 89d0eca6b7
commit 5386fe1a1c
2 changed files with 1 additions and 2 deletions

View File

@ -472,7 +472,6 @@ static void NetworkAcceptClients()
{
struct sockaddr_in sin;
NetworkClientSocket *cs;
uint i;
bool banned;
/* Should never ever happen.. is it possible?? */

View File

@ -429,7 +429,7 @@ void NetworkUDPQueryServerThread(void *pntr)
/* Clear item in gamelist */
NetworkGameList *item = CallocT<NetworkGameList>(1);
item->address = *info;
strecpy(item->info.server_name, info->GetHostname(), lastof(item->info.server_name));
strecpy(item->info.server_name, info->GetAddressAsString(), lastof(item->info.server_name));
strecpy(item->info.hostname, info->GetHostname(), lastof(item->info.hostname));
item->manually = info->manually;
NetworkGameListAddItemDelayed(item);