From 0b9387f09c3ea601da8256b1dbe285b411424a5d Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 25 Oct 2016 14:42:03 -0700 Subject: [PATCH] Force address Detection on optional interfaces Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Compiler.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index e11c52bf2..e2fbb222f 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -282,8 +282,13 @@ sub generate_script_2() { 'detect_configuration()', '{' ); - my $global_variables = have_global_variables; my $optional_interfaces = find_interfaces_by_option( 'optional' ); + # + # Force address detection for all optional interfaces + # + get_interface_address( $_ ) for @$optional_interfaces; + + my $global_variables = have_global_variables; push_indent;