mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Default IPs to ignore can also be hostnames https://sourceforge.net/p/webadmin/bugs/4893/
This commit is contained in:
@@ -24,6 +24,7 @@ my @ignoreips = $in{'ignoreip_def'} ? ( ) : split(/\s+/, $in{'ignoreip'});
|
||||
foreach my $ip (@ignoreips) {
|
||||
&check_ipaddress($ip) || &check_ip6address($ip) ||
|
||||
($ip =~ /^([0-9\.]+)\/(\d+)/ && &check_ipaddress("$1")) ||
|
||||
&to_ipaddress($ip) ||
|
||||
&error($text{'jail_eignoreip'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user