]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/firewall.cgi
Merge remote-tracking branch 'ummeegge/openvpn' into next
[people/teissler/ipfire-2.x.git] / html / cgi-bin / firewall.cgi
index 28ae464c602e572c960717b4ea8089d06820435d..9af97d1a88b7e5fa7b39bfca3fd1ba134a7b48f2 100644 (file)
@@ -1260,15 +1260,12 @@ sub get_serviceports
        my $name=shift;
        &General::readhasharray("$configsrv", \%customservice);
        &General::readhasharray("$configsrvgrp", \%customservicegrp);
-       my $tcp;
-       my $udp;
-       my $icmp;
        @protocols=();
        my @specprot=("IPIP","IPV6","IGMP","GRE","AH","ESP");
        if($type eq 'service'){
                foreach my $key (sort { ncmp($customservice{$a}[0],$customservice{$b}[0]) } keys %customservice){
                        if ($customservice{$key}[0] eq $name){
-                               push (@protocols," ".$customservice{$key}[2]);
+                               push (@protocols,$customservice{$key}[2]);
                        }
                }
        }elsif($type eq 'group'){
@@ -1280,8 +1277,7 @@ sub get_serviceports
                                        foreach my $key1 (sort { ncmp($customservice{$a}[0],$customservice{$b}[0]) } keys %customservice){
                                                if ($customservice{$key1}[0] eq $customservicegrp{$key}[2]){
                                                        if (!grep(/$customservice{$key1}[2]/, @protocols)){
-                                                               push (@protocols," ".$customservice{$key1}[2]);
-                                                       }
+                                                               push (@protocols,$customservice{$key1}[2]);}
                                                }
                                        }
                                }
@@ -2474,7 +2470,7 @@ END
                                push (@protocols,$Lang::tr{'all'});
                        }
 
-                       my $protz=join(",",@protocols);
+                       my $protz=join(", ",@protocols);
                        if($protz eq 'ICMP' && $$hash{$key}[9] ne 'All ICMP-Types' && $$hash{$key}[14] ne 'cust_srvgrp'){
                                &General::readhasharray("${General::swroot}/fwhosts/icmp-types", \%icmptypes);
                                foreach my $keyicmp (sort { ncmp($icmptypes{$a}[0],$icmptypes{$b}[0]) }keys %icmptypes){
@@ -2483,6 +2479,8 @@ END
                                                last;
                                        }
                                }
+                       }elsif($#protocols gt '3'){
+                               print"<td align='center'><span title='$protz'>$Lang::tr{'fwdfw many'}</span></td>";
                        }else{
                                print"<td align='center'>$protz</td>";
                        }