1
0
Fork 0
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:
Tomaz Solc 2016-10-01 09:23:38 +02:00
parent 5f432d0d6d
commit a582c4bae2

View file

@ -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);