mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't omit hosts specified as "0". Ticket #4573
This commit is contained in:
parent
a46212734a
commit
052e4ee829
@ -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;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user