mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +00:00
dhcp-pool: Ignore comments in conffile.
This prevents dhcp-pool from detecting commented-out "range" statements.
This commit is contained in:
parent
5f432d0d6d
commit
a582c4bae2
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ sub determine_pools {
|
|||
close (CONFFILE);
|
||||
|
||||
foreach $line (@conffile) {
|
||||
next if $line =~ /^\s*#/;
|
||||
|
||||
if ($line =~ /range[\s]+([\d]+\.[\d]+\.[\d]+\.[\d]+)[\s]+([\d]+\.[\d]+\.[\d]+\.[\d]+)/) {
|
||||
$start = string2ip($1);
|
||||
$end = string2ip($2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue