Skip to content

Commit

Permalink
dnsmasq: since this was always based on a hardwired /etc/hosts...
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fichtner committed Dec 8, 2016
1 parent cd6cdba commit f31e556
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/etc/inc/plugins.inc.d/dnsmasq.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit f31e556

Please sign in to comment.