X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fiptables.cgi;h=886330d0e2a6ab3b7b36b8c163871ae7254f42ae;hp=080371b375c6aee211fb5a27e4a39686c2c243f8;hb=bed16d4f435080044546380850b27ede31355ff5;hpb=1ddefbbdc868e2ac0e650cbc480dbf86a8d355ae diff --git a/html/cgi-bin/iptables.cgi b/html/cgi-bin/iptables.cgi index 080371b375..886330d0e2 100644 --- a/html/cgi-bin/iptables.cgi +++ b/html/cgi-bin/iptables.cgi @@ -106,8 +106,9 @@ END } $lines++; - + } + $chains{$chainname."end"} = $lines-1; close (FILE); # now the chain hash is extracted to get the correct name of the chain @@ -119,7 +120,7 @@ END # colored gui print "
\n\n"; - foreach (keys(%chainsman)){ + foreach (sort(keys(%chainsman))){ if ( $_ =~ /end$/ ){ next; @@ -355,6 +357,7 @@ END $natlines++; } + $chainsnat{$chainname."end"} = $natlines-1; close (FILE); # now the chain hash is extracted to get the correct name of the chain @@ -366,7 +369,7 @@ END # colored gui print "\n