]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/firewall/firewall-lib.pl
Firewall: New feature: Now it is possible to define a custom service with a portrange...
[ipfire-2.x.git] / config / firewall / firewall-lib.pl
index f1e8403daa171b03deb17757fe358eae8402205d..8cff76bb53ac42965988b5a26b43cbc399d7d036 100755 (executable)
@@ -108,10 +108,8 @@ sub get_srv_port
        my $field=shift;
        my $prot=shift;
        foreach my $key (sort {$a <=> $b} keys %customservice){
-               if($customservice{$key}[0] eq $val){
-                       if($customservice{$key}[2] eq $prot){
-                               return $customservice{$key}[$field];
-                       }
+               if($customservice{$key}[0] eq $val && $customservice{$key}[2] eq $prot){
+                       return $customservice{$key}[$field];
                }
        }
 }