From ced691965567c8e995f92bd15d4ca0bb26fdcbd5 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 19 Feb 2008 18:49:03 -0800 Subject: Fix "show dhcp client leases" so that it will parse multiple name servers. --- scripts/vyatta-show-dhclient.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-show-dhclient.pl b/scripts/vyatta-show-dhclient.pl index 24a1a60..9eccc25 100755 --- a/scripts/vyatta-show-dhclient.pl +++ b/scripts/vyatta-show-dhclient.pl @@ -71,7 +71,7 @@ sub dhclient_parse_vars { $var_list{'last_update'} = $line; while ($line = ) { chomp $line; - if ($line =~ m/(\w+)=\'([a-zA-Z0-9.]+)\'/) { + if ($line =~ m/(\w+)=\'([\w\s.]+)\'/) { my $var = $1; my $val = $2; $var_list{$var} = $val; -- cgit v1.2.3