mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix logic in add_update_server() to make optimisation actually optimise.
This commit is contained in:
@@ -630,7 +630,7 @@ int add_update_server(int flags,
|
|||||||
/* See if there is a suitable candidate, and unmark
|
/* See if there is a suitable candidate, and unmark
|
||||||
only do this for forwarding servers, not
|
only do this for forwarding servers, not
|
||||||
address or local, to avoid delays on large numbers. */
|
address or local, to avoid delays on large numbers. */
|
||||||
if (flags & SERV_IS_LOCAL)
|
if (!(flags & SERV_IS_LOCAL))
|
||||||
for (serv = daemon->servers; serv; serv = serv->next)
|
for (serv = daemon->servers; serv; serv = serv->next)
|
||||||
if ((serv->flags & SERV_MARK) &&
|
if ((serv->flags & SERV_MARK) &&
|
||||||
hostname_isequal(alloc_domain, serv->domain))
|
hostname_isequal(alloc_domain, serv->domain))
|
||||||
|
|||||||
Reference in New Issue
Block a user