mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed bug in the masterserver when using alt_address
This commit is contained in:
parent
3ab7ef3243
commit
7703749cdf
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue