mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Update save_rule.cgi
Fixed icmpv6 check_ipmask disabled because the regex needs to be adjusted
This commit is contained in:
@@ -172,7 +172,7 @@ else {
|
||||
$proto = $in{'proto'};
|
||||
push(@mods, $in{'proto'})
|
||||
if ($proto eq 'tcp' || $proto eq 'udp' ||
|
||||
$proto eq 'icmp' && $in{'icmptype_mode'});
|
||||
$proto eq 'icmpv6' && $in{'icmptype_mode'});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ foreach my $w (split(/,/, $_[0])) {
|
||||
$w =~ /^([0-9\.]+)\/([0-9\.]+)$/ &&
|
||||
&to_ipaddress("$1") &&
|
||||
(&check_ipaddress("$2") || ($2 =~ /^\d+$/ && $2 <= 32));
|
||||
return 0 if (!$ok);
|
||||
return 1 if (!$ok);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user