Skip to content

Commit 7e6f4f9

Browse files
committed
Handle IPv6 addresses in access control
1 parent 9482646 commit 7e6f4f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

virtualmin-nginx-lib.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,8 @@ sub nginx_access_parse
10631063
&check_ipaddress($addr) ||
10641064
$addr =~ /^(\S+)\/(\d+)$/ &&
10651065
&check_ipaddress("$1") && $2 > 0 && $2 <= 32 ||
1066+
&check_ip6address($addr) ||
1067+
$addr =~ /^(\S+)\/(\d+)$/ && &check_ip6address("$1") ||
10661068
&error(&text('access_eaddr', $addr));
10671069
}
10681070
push(@obj, { 'name' => $mode,

0 commit comments

Comments
 (0)