Use less obscure code to set $call_generate_all_acasts;

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-09-19 11:20:10 -07:00
parent d363809859
commit 9aa2a4b704
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -279,7 +279,7 @@ sub generate_script_2() {
#
# Conditionally emit the 'generate_all_acasts() function
#
my $call_generate_all_acasts = $family == F_IPV6 && ! have_capability( 'ADDRTYPE' ) && generate_all_acasts;
my $call_generate_all_acasts = $family == F_IPV6 && ! have_capability( 'ADDRTYPE' ) ? generate_all_acasts : '';
emit( '' ,
'#' ,