Generate ALL_ACASTS during 'restore' processing

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-09-11 13:11:44 -07:00
parent fe7bb4abca
commit 6cab1c3c8c
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
2 changed files with 6 additions and 5 deletions

View File

@ -281,7 +281,8 @@ sub generate_script_2() {
'# Set global variables holding detected IP information' ,
'#' ,
'detect_configuration()',
'{' );
'{'
);
my $global_variables = have_global_variables;
my $optional_interfaces = find_interfaces_by_option( 'optional' );
@ -290,6 +291,7 @@ sub generate_script_2() {
if ( have_address_variables || @$optional_interfaces ) {
emit( 'local interface',
'local iface',
'',
'interface="$1"',
''
@ -312,7 +314,7 @@ sub generate_script_2() {
if ( $global_variables == ( ALL_COMMANDS | NOT_RESTORE ) ) {
verify_required_interfaces(0);
set_global_variables(0, 0);
set_global_variables($family == F_IPV4, 0);
handle_optional_interfaces;
}

View File

@ -2437,11 +2437,10 @@ sub generate_all_acasts() {
@wildacasts = '*' unless @wildacasts;
emit( 'local iface',
'',
emit( '',
'ALL_ACASTS=',
'',
'for iface in $(find_all_interfaces1); do' );
'for $iface in $(find_all_interfaces1); do' );
push_indent;