avoid mistaking v6 in ACL for prop:val

This commit is contained in:
Oliver Gorwits
2023-07-15 11:08:01 +01:00
parent 16eb4622fe
commit 6eed661c43

View File

@@ -202,7 +202,8 @@ sub check_acl {
}
# prop:val
if ($rule =~ m/^([^:]+):(.*)$/) {
# with a check that prop isn't just the first part of a v6 addr
if ($rule =~ m/^([^:]+):(.*)$/ and $1 !~ m/^[a-f0-9]+$/i) {
my $prop = $1;
my $match = $2 || '';
my $found = false;