diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 86a94b909..17a19f3a9 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -357,7 +357,7 @@ sub balance_fallback_route( $$$$ ) { emit ''; if ( $first_fallback_route ) { - if ( $balanced_providers == 1 ) { + if ( $fallback_providers == 1 ) { if ( $gateway ) { emit "FALLBACK_ROUTE=\"via $gateway dev $interface $realm\""; } else {