Don't omit hosts specified as "0". Ticket #4573

This commit is contained in:
Chris Buechler 2015-04-02 19:07:15 -05:00
parent a46212734a
commit 052e4ee829

View File

@ -338,7 +338,7 @@ function system_hosts_generate() {
$dnsmasqcfg['hosts'] = array();
foreach ($dnsmasqcfg['hosts'] as $host) {
if ($host['host'])
if ($host['host'] || $host['host'] == "0")
$lhosts .= "{$host['ip']} {$host['host']}.{$host['domain']} {$host['host']}\n";
else
$lhosts .= "{$host['ip']} {$host['domain']}\n";
@ -2139,4 +2139,4 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
}
return $sourceips;
}
?>
?>