summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-23 16:48:26 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-23 16:48:26 -0800
commit97ad223b0e9141309feb492b8d1491ab275a7032 (patch)
tree9a3e5b1245997648a72029290c47beab8bb81529 /lib/Vyatta
parent6a97757cd59e1bc047a8b47644090518fd3b5dde (diff)
downloadvyatta-cfg-97ad223b0e9141309feb492b8d1491ab275a7032.tar.gz
vyatta-cfg-97ad223b0e9141309feb492b8d1491ab275a7032.zip
Hide wireless and tunnel key values
Don't want to show WPA and WEP and VPN keys.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/ConfigOutput.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm
index c3b9674..d7992c7 100755
--- a/lib/Vyatta/ConfigOutput.pm
+++ b/lib/Vyatta/ConfigOutput.pm
@@ -77,7 +77,8 @@ sub displayValues {
$default = $txt;
}
}
- my $is_password = ($name =~ /^.*(password|pre-shared-secret)$/);
+ my $is_password = ($name =~ /^.*(passphrase|password|pre-shared-secret|key)$/);
+
my $HIDE_PASSWORD = '****************';
$config->setLevel(join ' ', @cur_path);
if ($is_multi) {