From b814b46be681fa36ab8c672bea5e49c61cc1a46f Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Thu, 10 Jul 2014 15:37:07 +1000 Subject: 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. --- scripts/dns-forwarding/vyatta-dns-forwarding.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3