From e6956d0456dd50f513a101838a1b12c69be73745 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Mon, 1 Feb 2010 18:09:25 -0800 Subject: use OrigValue so that this works when show command is run outside of config mode --- scripts/firewall/vyatta-show-firewall.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl index e939dcf..385e003 100755 --- a/scripts/firewall/vyatta-show-firewall.pl +++ b/scripts/firewall/vyatta-show-firewall.pl @@ -125,7 +125,7 @@ sub show_interfaces_zones { my $custom_filter = 0; my $config = new Vyatta::Config; $config->setLevel("content-inspection traffic-filter"); - my $custom_traffic_filter = $config->returnValue('custom'); + my $custom_traffic_filter = $config->returnOrigValue('custom'); if ((defined $custom_traffic_filter) && ($custom_traffic_filter eq $chain)) { $custom_filter = 1; print "\n Active on all incoming and forwarded traffic for content-inspection\n"; -- cgit v1.2.3