Bring functions for checking allowed IPs into sync http://virtualmin.com/node/36017

This commit is contained in:
Jamie Cameron
2015-02-06 14:34:36 -08:00
parent 0ffdd6c842
commit 8099d2b045

View File

@@ -1546,6 +1546,13 @@ elsif ($h =~ /^([0-9\.]+)\/([0-9\.]+)$/) {
&check_ipaddress($2) ||
return &text('access_emask', "$2");
}
elsif ($h =~ /^([0-9\.]+)\-([0-9\.]+)$/) {
# IPv4 address
&check_ipaddress("$1") ||
return &text('access_eip', "$1");
&check_ipaddress("$2") ||
return &text('access_eip', "$2");
}
elsif ($h =~ /^[0-9\.]+$/) {
# IPv4 address
&check_ipaddress($h) ||