Commit 4f116228 authored by Manuel Faux's avatar Manuel Faux

unbound: Fix "register DHCP leases in DNS" config option

The option to register DHCP leases within unbound DNS was configurable via
DNS Resolver GUI, but the setting was ignored. DHCP leases were always applied.
parent 3724aecb
......@@ -549,6 +549,7 @@ function unbound_add_host_entries() {
}
// Handle DHCPLeases added host entries
if (isset($config['unbound']['regdhcp'])) {
$dhcplcfg = read_hosts();
$host_entries = "";
if (is_array($dhcplcfg)) {
......@@ -562,6 +563,7 @@ function unbound_add_host_entries() {
}
$unbound_entries .= $host_entries;
}
}
// Write out entries
bootstrap_unbound_root();
......
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