Firewall: Bugfix: When creating a servcie in firewall-groups and selecting a protocol other than icmp, the enty in the ruletable shows correct values PLUS the "all icmp-types" under ICMP.

Now the ICMP FIeld is emtpy when selecting another protocol than icmp
This commit is contained in:
Alexander Marx
2013-11-04 08:04:44 +01:00
committed by Michael Tremer
parent 7b82bee7c4
commit f8cbcb7c8a

View File

@@ -741,6 +741,7 @@ if ($fwhostsettings{'ACTION'} eq 'saveservice')
}
}
if($ICMP eq ''){$ICMP=$fwhostsettings{'ICMP_TYPES'};}
if ($fwhostsettings{'PROT'} ne 'ICMP'){$ICMP='';}
if (!$errormessage){
my $key = &General::findhasharraykey (\%customservice);
foreach my $i (0 .. 4) { $customservice{$key}[$i] = "";}