From 97ad223b0e9141309feb492b8d1491ab275a7032 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 23 Feb 2010 16:48:26 -0800 Subject: Hide wireless and tunnel key values Don't want to show WPA and WEP and VPN keys. --- lib/Vyatta/ConfigOutput.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Vyatta/ConfigOutput.pm') 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) { -- cgit v1.2.3