Fix 'get_routed_networks' handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5997 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-18 16:02:09 +00:00
parent b0a2ea3d33
commit ab38899b8c

View File

@ -904,7 +904,6 @@ sub match_orig_dest ( $ ) {
}
}
#
# Match Source IPSEC
#
@ -1090,9 +1089,9 @@ sub get_interface_nets ( $ ) {
my $variable = interface_nets( $interface );
if ( interface_is_optional $interface ) {
$interfaceaddr{$interface} = qq($variable=\$(get_routed_networks $interface)\n);
$interfacenets{$interface} = qq($variable=\$(get_routed_networks $interface)\n);
} else {
$interfaceaddr{$interface} = qq($variable=\$(get_routed_networks $interface)
$interfacenets{$interface} = qq($variable=\$(get_routed_networks $interface)
[ -n "\$$variable" ] || fatal_error "Unable to determine the routes through interface \\"$interface\\""
);
}