fixed bug in the masterserver when using alt_address

This commit is contained in:
Magnus Auvinen 2007-12-13 21:05:14 +00:00
parent 3ab7ef3243
commit 7703749cdf

View file

@ -231,7 +231,8 @@ int main(int argc, char **argv)
// remove it from checking
for(int i = 0; i < num_checkservers; i++)
{
if(net_addr4_cmp(&check_servers[i].address, &packet.address) == 0)
if(net_addr4_cmp(&check_servers[i].address, &packet.address) == 0 ||
net_addr4_cmp(&check_servers[i].alt_address, &packet.address) == 0)
{
num_checkservers--;
check_servers[i] = check_servers[num_checkservers];