mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
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:
parent
b0a2ea3d33
commit
ab38899b8c
@ -904,7 +904,6 @@ sub match_orig_dest ( $ ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Match Source IPSEC
|
# Match Source IPSEC
|
||||||
#
|
#
|
||||||
@ -1090,9 +1089,9 @@ sub get_interface_nets ( $ ) {
|
|||||||
my $variable = interface_nets( $interface );
|
my $variable = interface_nets( $interface );
|
||||||
|
|
||||||
if ( interface_is_optional $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 {
|
} 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\\""
|
[ -n "\$$variable" ] || fatal_error "Unable to determine the routes through interface \\"$interface\\""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user