Set the interface routeback option if there are any IP host groups with 'routeback'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-06-10 10:29:21 -07:00
parent 79348d2b55
commit dbd30f981c

View File

@ -745,6 +745,8 @@ sub add_group_to_zone($$$$$)
hosts => \@newnetworks,
ipsec => $type == IPSEC ? 'ipsec' : 'none' ,
exclusions => \@exclusions };
$interfaces{$interface}{options}{routeback} ||= ( $type != IPSEC && $options->{routeback} );
}
#