summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-02-01 18:09:25 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2010-02-01 18:09:25 -0800
commite6956d0456dd50f513a101838a1b12c69be73745 (patch)
tree44e324f17d1fd583ca34cad52f820476f451eb2a /scripts
parent04fb66322346b77cb171d51fc2b3763e0845b6f4 (diff)
downloadvyatta-op-firewall-e6956d0456dd50f513a101838a1b12c69be73745.tar.gz
vyatta-op-firewall-e6956d0456dd50f513a101838a1b12c69be73745.zip
use OrigValue so that this works when show command is run outside of config mode
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl2
1 files changed, 1 insertions, 1 deletions
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";