Fix bug in Shorewall::Rules::process_rule1()

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9773 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-01 00:04:04 +00:00
parent d3a54e626c
commit 35790476a3

View File

@ -1342,8 +1342,8 @@ sub process_rule1 ( $$$$$$$$$$$$$ ) {
if ( $origdest eq 'detect' ) { if ( $origdest eq 'detect' ) {
my $interfacesref = $sourceref->{interfaces}; my $interfacesref = $sourceref->{interfaces};
my $interfaces = "@$interfacesref"; my $interfaces = [ ( keys %$interfacesref ) ];
$origdest = $interfaces ? "detect:$interfaces" : ALLIP; $origdest = $interfaces ? "detect:@$interfaces" : ALLIP;
} }
expand_rule( ensure_chain ('nat' , $sourceref->{type} == FIREWALL ? 'OUTPUT' : dnat_chain $sourcezone) , expand_rule( ensure_chain ('nat' , $sourceref->{type} == FIREWALL ? 'OUTPUT' : dnat_chain $sourcezone) ,