summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-07-10 15:54:43 +0700
committerDaniil Baturin <daniil@baturin.org>2014-07-10 15:54:43 +0700
commit2d1a8583e126c6ed6335a8e05db72502ceb0c7dd (patch)
treef69cabb66b452034cc69e1632bac7ecd89f66da4
parent08a5abd595f91fe1eac0bcd3ea7d72aff880455a (diff)
parentb814b46be681fa36ab8c672bea5e49c61cc1a46f (diff)
downloadvyatta-cfg-system-2d1a8583e126c6ed6335a8e05db72502ceb0c7dd.tar.gz
vyatta-cfg-system-2d1a8583e126c6ed6335a8e05db72502ceb0c7dd.zip
Merge pull request #15 from paulgear/helium
Bug #255: Correct ignore-hosts-file operation
-rwxr-xr-xscripts/dns-forwarding/vyatta-dns-forwarding.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index c2109191..b5efd269 100755
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -63,7 +63,7 @@ sub dnsforwarding_get_values {
my $output = '';
my $config = new Vyatta::Config;
my $use_dnsmasq_conf = 0;
- my (@listen_interfaces, $cache_size, @use_nameservers, $use_system_nameservers, @use_dhcp_nameservers, @domain, $server);
+ my (@listen_interfaces, $cache_size, @use_nameservers, $use_system_nameservers, @use_dhcp_nameservers, @domain, $server, $ignore_hosts_file);
$config->setLevel("service dns forwarding");
@@ -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) {