dnsmasq: since this was always based on a hardwired /etc/hosts...

The regdhcp conditional option never really worked in the first place.
Dhcplease registration is controlled by regdhcp and regdhcpstatic
elsewhere already and we always need to include this file.

PR: https://forum.opnsense.org/index.php?topic=4041
This commit is contained in:
Franco Fichtner 2016-12-08 23:18:11 +01:00
parent cd6cdba1bf
commit f31e556078

View File

@ -85,11 +85,7 @@ function dnsmasq_configure_do($verbose = false)
flush();
}
$args = "";
if (isset($config['dnsmasq']['regdhcp'])) {
$args .= " -H /var/etc/dnsmasq-hosts ";
}
$args = ' -H /var/etc/dnsmasq-hosts ';
/* Setup listen port, if non-default */
if (isset($config['dnsmasq']['port']) && is_port($config['dnsmasq']['port'])) {