diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index efa88c03f..7c710754d 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -25,7 +25,6 @@ package Shorewall::Rules; require Exporter; -use Scalar::Util 'reftype'; use Shorewall::Config qw(:DEFAULT :internal); use Shorewall::IPAddrs; use Shorewall::Zones; @@ -1998,7 +1997,7 @@ sub generate_matrix() { my $match_source_dev = ''; my $forwardchainref = $filter_table->{forward_chain $interface}; - if ( use_forward_chain $interface || ( @{$forwardchainref->{rules} } && ! reftype $chainref ) ) { + if ( use_forward_chain $interface || ( @{$forwardchainref->{rules} } && ! $chainref ) ) { # # Either we must use the interface's forwarding chain or that chain has rules and we have nowhere to move them #