diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-04-02 19:11:42 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-04-02 19:11:42 -0500 |
commit | 35ff72fa0408f4c43e61bece913d26e69f52c64e (patch) | |
tree | 0af6ef1c059daad72c1956fc26ed7d20a03f5794 | |
parent | 052e4ee829fcd3fb1c1fd2c7dcdf43fc39f09f9b (diff) | |
download | pfsense-35ff72fa0408f4c43e61bece913d26e69f52c64e.zip pfsense-35ff72fa0408f4c43e61bece913d26e69f52c64e.tar.gz |
0 could be valid for hostname aliases too. Ticket #4573
-rw-r--r-- | etc/inc/system.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 29b6d2a..4b4a3ae 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -345,7 +345,7 @@ function system_hosts_generate() { if (!is_array($host['aliases']) || !is_array($host['aliases']['item'])) continue; foreach ($host['aliases']['item'] as $alias) { - if ($alias['host']) + if ($alias['host'] || $alias['host'] == "0") $lhosts .= "{$host['ip']} {$alias['host']}.{$alias['domain']} {$alias['host']}\n"; else $lhosts .= "{$host['ip']} {$alias['domain']}\n"; |