]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: BUGFIX - when using source Protocol and NO target protocol only...
authorAlexander Marx <amarx@ipfire.org>
Wed, 8 May 2013 06:19:03 +0000 (08:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:13:12 +0000 (14:13 +0200)
html/cgi-bin/forwardfw.cgi

index e9c051b15f9b0bd3dc6e4886c78423c2f0cb2043..0fbc030b6e549db1d0959f0a56f4c880fbe33f5e 100755 (executable)
@@ -2516,10 +2516,10 @@ END
                        print"</td>";
                        #Get Protocol
                        my $prot;
-                       if ($$hash{$key}[12]){                  #target prot if manual
-                               push (@protocols,$$hash{$key}[12]);
-                       }elsif($$hash{$key}[8]){                #source prot if manual
+                       if ($$hash{$key}[8] && $$hash{$key}[7] eq 'ON'){#source prot if manual
                                push (@protocols,$$hash{$key}[8]);
+                       }elsif ($$hash{$key}[12]){                      #target prot if manual
+                               push (@protocols,$$hash{$key}[12]);
                        }elsif($$hash{$key}[14] eq 'cust_srv'){
                                &get_serviceports("service",$$hash{$key}[15]);
                        }elsif($$hash{$key}[14] eq 'cust_srvgrp'){