]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Firewall: Bugfix: When creating a servcie in firewall-groups and selecting a protocol...
authorAlexander Marx <amarx@ipfire.org>
Mon, 4 Nov 2013 07:04:44 +0000 (08:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Nov 2013 12:41:06 +0000 (13:41 +0100)
Now the ICMP FIeld is emtpy when selecting another protocol than icmp

html/cgi-bin/fwhosts.cgi

index fd66a494145a4e9cb0c51d77829ee87529248a08..91de897ec98123aab3fa9e19b3089d4bfc15d3cb 100755 (executable)
@@ -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] = "";}