Commit 2941d3ac authored by Simon Kelley's avatar Simon Kelley

Fixup dhcp-configs after reading extra hostfiles with inotify.

parent d36b732c
...@@ -194,7 +194,19 @@ int inotify_check(time_t now) ...@@ -194,7 +194,19 @@ int inotify_check(time_t now)
strcat(path, in->name); strcat(path, in->name);
if (ah->flags & AH_HOSTS) if (ah->flags & AH_HOSTS)
read_hostsfile(path, ah->index, 0, NULL, 0); {
read_hostsfile(path, ah->index, 0, NULL, 0);
#ifdef HAVE_DHCP
if (daemon->dhcp || daemon->doing_dhcp6)
{
/* Propogate the consequences of loading a new dhcp-host */
dhcp_update_configs(daemon->dhcp_conf);
lease_update_from_configs();
lease_update_file(now);
lease_update_dns(1);
}
#endif
}
#ifdef HAVE_DHCP #ifdef HAVE_DHCP
else if (ah->flags & AH_DHCP_HST) else if (ah->flags & AH_DHCP_HST)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment