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:
10
src/dhcp6.c
10
src/dhcp6.c
@@ -569,11 +569,11 @@ void dhcp_construct_contexts(time_t now)
|
||||
param.now = now;
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user