diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index 580612b..4791b5c 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -1063,6 +1063,8 @@ sub nginx_access_parse &check_ipaddress($addr) || $addr =~ /^(\S+)\/(\d+)$/ && &check_ipaddress("$1") && $2 > 0 && $2 <= 32 || + &check_ip6address($addr) || + $addr =~ /^(\S+)\/(\d+)$/ && &check_ip6address("$1") || &error(&text('access_eaddr', $addr)); } push(@obj, { 'name' => $mode,