diff options
author | Paul Gear <github@libertysys.com.au> | 2014-07-10 15:37:07 +1000 |
---|---|---|
committer | Paul Gear <github@libertysys.com.au> | 2014-07-10 15:37:07 +1000 |
commit | b814b46be681fa36ab8c672bea5e49c61cc1a46f (patch) | |
tree | f69cabb66b452034cc69e1632bac7ecd89f66da4 /scripts | |
parent | 5ed3146160d28df5ec4cb911458960b795c50874 (diff) | |
download | vyatta-cfg-system-b814b46be681fa36ab8c672bea5e49c61cc1a46f.tar.gz vyatta-cfg-system-b814b46be681fa36ab8c672bea5e49c61cc1a46f.zip |
Fix dnsmasq.conf generation for ignore-hosts-file
The ignore-hosts-file option did not work; because it's a boolean it didn't return any value and was always undefined when the test was done. Using $config->exists() fixes this.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index f0cddcf6..b5efd269 100755 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -83,7 +83,7 @@ sub dnsforwarding_get_values { $use_system_nameservers = $config->exists("system"); @use_dhcp_nameservers = $config->returnValues("dhcp"); @domain = $config->listNodes("domain"); - $ignore_hosts_file = $config->returnValue("ignore-hosts-file"); + $ignore_hosts_file = $config->exists("ignore-hosts-file"); } if (@listen_interfaces != 0) { |