mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Revert "Add conditional sorts to find[_zone]_hosts_by_option()"
This reverts commit 42a505c99d
.
This commit is contained in:
parent
42a505c99d
commit
92b25d88b0
@ -2321,9 +2321,9 @@ sub find_hosts_by_option( $ ) {
|
||||
}
|
||||
|
||||
for my $zone ( grep ! ( $zones{$_}{type} & FIREWALL ) , @zones ) {
|
||||
for my $type (sortkeysiftest %{$zones{$zone}{hosts}} ) {
|
||||
for my $type (keys %{$zones{$zone}{hosts}} ) {
|
||||
my $interfaceref = $zones{$zone}{hosts}->{$type};
|
||||
for my $interface ( sortkeysiftest %$interfaceref ) {
|
||||
for my $interface ( keys %$interfaceref ) {
|
||||
my $arrayref = $interfaceref->{$interface};
|
||||
for my $host ( @{$arrayref} ) {
|
||||
my $ipsec = $host->{ipsec};
|
||||
@ -2351,9 +2351,9 @@ sub find_zone_hosts_by_option( $$ ) {
|
||||
my @hosts;
|
||||
|
||||
unless ( $zones{$zone}{type} & FIREWALL ) {
|
||||
for my $type (sortkeysiftest %{$zones{$zone}{hosts}} ) {
|
||||
for my $type (keys %{$zones{$zone}{hosts}} ) {
|
||||
my $interfaceref = $zones{$zone}{hosts}->{$type};
|
||||
for my $interface ( sortkeysiftest %$interfaceref ) {
|
||||
for my $interface ( keys %$interfaceref ) {
|
||||
my $arrayref = $interfaceref->{$interface};
|
||||
for my $host ( @{$arrayref} ) {
|
||||
if ( my $value = $host->{options}{$option} ) {
|
||||
|
Loading…
Reference in New Issue
Block a user