diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-23 16:48:26 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-23 16:59:23 -0800 |
commit | 4df177269ad6f4da23a87363a535f71c5c45f787 (patch) | |
tree | b671423fb97b0192456c4c22837473a0425a3ca6 /lib/Vyatta/ConfigOutput.pm | |
parent | 0603f7984ceb0d06232ac787955199395fc36ca6 (diff) | |
download | vyatta-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.
Diffstat (limited to 'lib/Vyatta/ConfigOutput.pm')
-rwxr-xr-x | lib/Vyatta/ConfigOutput.pm | 3 |
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) { |