From 052e4ee829fcd3fb1c1fd2c7dcdf43fc39f09f9b Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 2 Apr 2015 19:07:15 -0500 Subject: [PATCH] Don't omit hosts specified as "0". Ticket #4573 --- etc/inc/system.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index bfd8e88fb6..29b6d2ae03 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -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; } -?> +?> \ No newline at end of file