X-Git-Url: http://git.datanom.net/pve-dhcp-server.git/blobdiff_plain/84b2237b1dbf754dee6b2b4f28af47f9ef2e53a1..2470397ffb9d6eeebfcbda3cfcab8858916c1f0e:/DHCPServer.pm diff --git a/DHCPServer.pm b/DHCPServer.pm index a4a2c7f..ebf7144 100644 --- a/DHCPServer.pm +++ b/DHCPServer.pm @@ -540,8 +540,7 @@ sub read_config { } elsif ($subopt || $_ =~ /^\s*{\s*/) { if ($subopt) { if ($_ =~ /^\s*(allow|static)\s+(.+)\s*;/) { - my (@vals, @tmp); - @vals = split(/\s*,\s*/, $2); + my @vals = split(/\s*,\s*/, $2); $config->{$1} = [@vals]; $self->logger("Key: $1 Value: $2"); } else {