Revert "Add conditional sorts to find[_zone]_hosts_by_option()"

This reverts commit 42a505c99d.
This commit is contained in:
Tom Eastep 2020-04-07 11:08:46 -07:00
parent 42a505c99d
commit 92b25d88b0
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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} ) {