More sorting by interface number

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8126 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-01-31 02:33:16 +00:00
parent 06d3269f7e
commit 2cd7e2b2fb

View File

@ -1841,7 +1841,7 @@ sub generate_matrix() {
}
for my $typeref ( values %$dest_hosts_ref ) {
for my $interface ( keys %$typeref ) {
for my $interface ( sort { interface_number( $a ) <=> interface_number( $b ) } keys %$typeref ) {
my $arrayref = $typeref->{$interface};
for my $hostref ( @$arrayref ) {
next if $hostref->{options}{sourceonly};