forked from extern/shorewall_code
Fix REQUIRE_INTERFACE=Yes
This commit is contained in:
parent
f4f1641bfb
commit
5cb8c47eb2
@ -853,6 +853,11 @@ sub handle_optional_interfaces( $ ) {
|
|||||||
#
|
#
|
||||||
my $interfaces = find_interfaces_by_option1 'optional';
|
my $interfaces = find_interfaces_by_option1 'optional';
|
||||||
|
|
||||||
|
if ( $config{REQUIRE_INTERFACE} ) {
|
||||||
|
emit( 'HAVE_INTERFACE=' );
|
||||||
|
emit( '' );
|
||||||
|
}
|
||||||
|
|
||||||
if ( @$interfaces ) {
|
if ( @$interfaces ) {
|
||||||
for my $interface ( @$interfaces ) {
|
for my $interface ( @$interfaces ) {
|
||||||
my $provider = $provider_interfaces{$interface};
|
my $provider = $provider_interfaces{$interface};
|
||||||
@ -861,11 +866,6 @@ sub handle_optional_interfaces( $ ) {
|
|||||||
|
|
||||||
emit( '' );
|
emit( '' );
|
||||||
|
|
||||||
if ( $config{REQUIRE_INTERFACE} ) {
|
|
||||||
emit( 'HAVE_INTERFACE=' );
|
|
||||||
emit( '' );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $provider ) {
|
if ( $provider ) {
|
||||||
#
|
#
|
||||||
# This interface is associated with a non-shared provider -- get the provider table entry
|
# This interface is associated with a non-shared provider -- get the provider table entry
|
||||||
|
Loading…
Reference in New Issue
Block a user