diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-02-19 18:49:03 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-02-19 18:49:03 -0800 |
commit | ced691965567c8e995f92bd15d4ca0bb26fdcbd5 (patch) | |
tree | e78d52e41be0b7af4bc592f640fb9dd36d3b460e | |
parent | 2dfc93110abb8194889687b2293eccbd0ca94e3e (diff) | |
download | vyatta-op-ced691965567c8e995f92bd15d4ca0bb26fdcbd5.tar.gz vyatta-op-ced691965567c8e995f92bd15d4ca0bb26fdcbd5.zip |
Fix "show dhcp client leases" so that it will parse multiple name servers.
-rwxr-xr-x | scripts/vyatta-show-dhclient.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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 = <FD>) { 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; |