mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Tweak context-construct logic.
This commit is contained in:
@@ -569,10 +569,10 @@ void dhcp_construct_contexts(time_t now)
|
|||||||
param.now = now;
|
param.now = now;
|
||||||
|
|
||||||
for (context = daemon->dhcp6; context; context = context->next)
|
for (context = daemon->dhcp6; context; context = context->next)
|
||||||
if (context->flags & CONTEXT_CONSTRUCTED)
|
|
||||||
{
|
{
|
||||||
context->flags |= CONTEXT_GC;
|
|
||||||
context->if_index = 0;
|
context->if_index = 0;
|
||||||
|
if (context->flags & CONTEXT_CONSTRUCTED)
|
||||||
|
context->flags |= CONTEXT_GC;
|
||||||
}
|
}
|
||||||
|
|
||||||
iface_enumerate(AF_INET6, ¶m, construct_worker);
|
iface_enumerate(AF_INET6, ¶m, construct_worker);
|
||||||
|
|||||||
Reference in New Issue
Block a user