summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index bfd8e88..29b6d2a 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
OpenPOWER on IntegriCloud