DebugHost — restrict debug mode to requests originating from specific hosts
The DebugHost configuration directive restricts
debug mode to only selected list of client hosts.
DebugHost accepts a list of IP addresses and IP address ranges.
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3905 (context shows lines 3905-3920)
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(@atoms)
or config_error("Improper IP address range for $var");
return $re;
}