diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-04-02 19:07:15 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-04-02 19:07:15 -0500 |
commit | 052e4ee829fcd3fb1c1fd2c7dcdf43fc39f09f9b (patch) | |
tree | 41af2fab60e0d988b7c0f02f946cadf8e9f9719c /etc | |
parent | a46212734aa36f346b12afa88a61fcf929f083c1 (diff) | |
download | pfsense-052e4ee829fcd3fb1c1fd2c7dcdf43fc39f09f9b.zip pfsense-052e4ee829fcd3fb1c1fd2c7dcdf43fc39f09f9b.tar.gz |
Don't omit hosts specified as "0". Ticket #4573
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 4 |
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 |