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:48:26 -0800 |
commit | 97ad223b0e9141309feb492b8d1491ab275a7032 (patch) | |
tree | 9a3e5b1245997648a72029290c47beab8bb81529 /lib/Vyatta | |
parent | 6a97757cd59e1bc047a8b47644090518fd3b5dde (diff) | |
download | vyatta-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-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) { |