tighten up ip range regexp so as not to catch hostnames with hyphens

This commit is contained in:
Oliver Gorwits
2018-02-05 11:17:18 -08:00
parent 515ea06687
commit 75e2043bef

View File

@@ -152,7 +152,7 @@ sub check_acl {
next INLIST;
}
if ($item =~ m/([a-f0-9]+)-([a-f0-9]+)$/i) {
if ($item =~ m/[:.]([a-f0-9]+)-([a-f0-9]+)$/i) {
my $first = $1;
my $last = $2;