From 132fa7a16bb3b23e2d193834ecf23069db931813 Mon Sep 17 00:00:00 2001 From: pwahle87 Date: Tue, 5 Jul 2016 05:44:32 +0200 Subject: [PATCH] Update save_rule.cgi Fixed icmpv6 check_ipmask disabled because the regex needs to be adjusted --- firewall6/save_rule.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall6/save_rule.cgi b/firewall6/save_rule.cgi index abbfe75d5..17bb8ba4a 100755 --- a/firewall6/save_rule.cgi +++ b/firewall6/save_rule.cgi @@ -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; }