summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-dhclient.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-02-19 18:49:03 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-02-19 18:49:03 -0800
commitced691965567c8e995f92bd15d4ca0bb26fdcbd5 (patch)
treee78d52e41be0b7af4bc592f640fb9dd36d3b460e /scripts/vyatta-show-dhclient.pl
parent2dfc93110abb8194889687b2293eccbd0ca94e3e (diff)
downloadvyatta-op-ced691965567c8e995f92bd15d4ca0bb26fdcbd5.tar.gz
vyatta-op-ced691965567c8e995f92bd15d4ca0bb26fdcbd5.zip
Fix "show dhcp client leases" so that it will parse multiple name servers.
Diffstat (limited to 'scripts/vyatta-show-dhclient.pl')
-rwxr-xr-xscripts/vyatta-show-dhclient.pl2
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;