mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed the master server to it support alternative address
This commit is contained in:
parent
bb48ddc34f
commit
24b023a445
|
@ -140,10 +140,10 @@ void update_servers()
|
|||
{
|
||||
check_servers[i].try_count++;
|
||||
check_servers[i].try_time = now;
|
||||
if(check_servers[i].try_count > 5)
|
||||
send_check(&check_servers[i].alt_address);
|
||||
else
|
||||
if(check_servers[i].try_count&1)
|
||||
send_check(&check_servers[i].address);
|
||||
else
|
||||
send_check(&check_servers[i].alt_address);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue