Skip to content

Commit

Permalink
dns_server: wait more time for fastest ip.
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Nov 16, 2023
1 parent 35667e6 commit 8b7f7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@ static void _dns_server_ping_result(struct ping_host_struct *ping_host, const ch
if (request->ping_time > 0) {
if (request->ping_time < threshold) {
may_complete = 1;
} else if (request->ping_time < (int)(get_tick_count() - request->send_tick) * 8) {
} else if (request->ping_time < (int)(get_tick_count() - request->send_tick)) {
may_complete = 1;
}
}
Expand Down

0 comments on commit 8b7f7ac

Please sign in to comment.