mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
dnsmasq: stop exposing regdhcpdomain to static entries
Unbound doesn't do it either. Eventually we want to get rid of it completely. For now Dnsmasq doesn't support reading DHCP ranges to match the correct domain for dynamic leases.
This commit is contained in:
parent
1c8639c338
commit
e126d432d6
@ -253,12 +253,7 @@ function _dnsmasq_add_host_entries()
|
||||
}
|
||||
|
||||
if (isset($dnsmasqcfg['regdhcpstatic'])) {
|
||||
$domain = $config['system']['domain'];
|
||||
if (!empty($config['dnsmasq']['regdhcpdomain'])) {
|
||||
$domain = $config['dnsmasq']['regdhcpdomain'];
|
||||
}
|
||||
|
||||
foreach (plugins_run('static_mapping', [null, true, $domain, legacy_interfaces_details()]) as $map) {
|
||||
foreach (plugins_run('static_mapping', [null, true, $config['system']['domain'], legacy_interfaces_details()]) as $map) {
|
||||
foreach ($map as $host) {
|
||||
if (empty($host['hostname'])) {
|
||||
/* cannot register without a hostname */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user