forked from extern/shorewall_code
Clean up of shared optional provider fix
This commit is contained in:
parent
1836aa9f79
commit
58fa0fe114
@ -272,9 +272,7 @@ sub add_a_provider( $$$$$$$$ ) {
|
|||||||
fatal_error "Configuring multiple providers through one interface requires an explicit gateway" if $shared;
|
fatal_error "Configuring multiple providers through one interface requires an explicit gateway" if $shared;
|
||||||
$gateway = get_interface_gateway $interface;
|
$gateway = get_interface_gateway $interface;
|
||||||
$gatewaycase = 'detect';
|
$gatewaycase = 'detect';
|
||||||
} else {
|
} elsif ( $gateway && $gateway ne '-' ) {
|
||||||
|
|
||||||
if ( $gateway && $gateway ne '-' ) {
|
|
||||||
validate_address $gateway, 0;
|
validate_address $gateway, 0;
|
||||||
$gatewaycase = 'specified';
|
$gatewaycase = 'specified';
|
||||||
} else {
|
} else {
|
||||||
@ -282,7 +280,6 @@ sub add_a_provider( $$$$$$$$ ) {
|
|||||||
fatal_error "Configuring multiple providers through one interface requires a gateway" if $shared;
|
fatal_error "Configuring multiple providers through one interface requires a gateway" if $shared;
|
||||||
$gateway = '';
|
$gateway = '';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
my $val = 0;
|
my $val = 0;
|
||||||
my $pref;
|
my $pref;
|
||||||
|
Loading…
Reference in New Issue
Block a user