mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 23:53:30 +01:00
Start optional interfaces when there are no providers
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
ca0ac0473c
commit
e75c88219f
@ -1768,6 +1768,7 @@ sub map_provider_to_interface() {
|
|||||||
|
|
||||||
sub setup_providers() {
|
sub setup_providers() {
|
||||||
our $providers;
|
our $providers;
|
||||||
|
our $pseudoproviders;
|
||||||
|
|
||||||
if ( $providers ) {
|
if ( $providers ) {
|
||||||
if ( $maxload ) {
|
if ( $maxload ) {
|
||||||
@ -1802,6 +1803,11 @@ sub setup_providers() {
|
|||||||
|
|
||||||
push_indent;
|
push_indent;
|
||||||
|
|
||||||
|
if ( $pseudoproviders ) {
|
||||||
|
emit '';
|
||||||
|
emit "start_$providers{$_}->{what}_$_" for @providers;
|
||||||
|
}
|
||||||
|
|
||||||
emit "\nundo_routing";
|
emit "\nundo_routing";
|
||||||
emit "restore_default_route $config{USE_DEFAULT_RT}";
|
emit "restore_default_route $config{USE_DEFAULT_RT}";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user