Skip to content

Commit

Permalink
* Fix bug where only one address was possible for DebugHost. Now
Browse files Browse the repository at this point in the history
  accepts a range of IP addresses.
  • Loading branch information
perusionmike committed Jun 5, 2016
1 parent 7b6d0a5 commit dfd8dcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Vend/Config.pm
Expand Up @@ -3907,12 +3907,14 @@ sub parse_ip_address_regexp {
my ($var, $value) = @_;
return '' unless $value;

my @atoms = split /[\s,\0]/, $value;

eval {
require Net::IP::Match::Regexp;
};
$@ and config_error("$var directive requires module: $@");

my $re = Net::IP::Match::Regexp::create_iprange_regexp($value)
my $re = Net::IP::Match::Regexp::create_iprange_regexp(@atoms)
or config_error("Improper IP address range for $var");
return $re;
}
Expand Down

0 comments on commit dfd8dcd

Please sign in to comment.