From 5386fe1a1c0a9f04ba40e03d162c1641e0ebd1af Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 3 Apr 2009 12:54:38 +0000 Subject: (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. --- src/network/network.cpp | 1 - src/network/network_udp.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/network/network.cpp b/src/network/network.cpp index 06bd53ee9..d2f918748 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -472,7 +472,6 @@ static void NetworkAcceptClients() { struct sockaddr_in sin; NetworkClientSocket *cs; - uint i; bool banned; /* Should never ever happen.. is it possible?? */ diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp index 886639fe4..77de8fcd2 100644 --- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -429,7 +429,7 @@ void NetworkUDPQueryServerThread(void *pntr) /* Clear item in gamelist */ NetworkGameList *item = CallocT(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); -- cgit v1.2.3-70-g09d2