summaryrefslogtreecommitdiff
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:59:23 -0800
commit4df177269ad6f4da23a87363a535f71c5c45f787 (patch)
treeb671423fb97b0192456c4c22837473a0425a3ca6
parent0603f7984ceb0d06232ac787955199395fc36ca6 (diff)
downloadvyatta-cfg-4df177269ad6f4da23a87363a535f71c5c45f787.tar.gz
vyatta-cfg-4df177269ad6f4da23a87363a535f71c5c45f787.zip
Hide wireless and tunnel key values
Don't want to show WPA and WEP and VPN keys.
-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) {