mirror of
https://github.com/webmin/webmin.git
synced 2026-04-17 14:40:27 +01:00
Bring functions for checking allowed IPs into sync http://virtualmin.com/node/36017
This commit is contained in:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user