mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Make 'default' and 'none' case insensitive in the GATEWAY column
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5fc242f760
commit
f33f333937
@ -481,18 +481,19 @@ sub process_a_provider( $ ) {
|
|||||||
$interface = $interfaceref->{name} unless $interfaceref->{wildcard};
|
$interface = $interfaceref->{name} unless $interfaceref->{wildcard};
|
||||||
}
|
}
|
||||||
|
|
||||||
my $gatewaycase = '';
|
|
||||||
|
|
||||||
if ( $physical =~ /\+$/ ) {
|
if ( $physical =~ /\+$/ ) {
|
||||||
return 0 if $pseudo;
|
return 0 if $pseudo;
|
||||||
fatal_error "Wildcard interfaces ($physical) may not be used as provider interfaces";
|
fatal_error "Wildcard interfaces ($physical) may not be used as provider interfaces";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $gateway eq 'detect' ) {
|
my $gatewaycase = '';
|
||||||
|
my $gw;
|
||||||
|
|
||||||
|
if ( ( $gw = lc $gateway ) eq 'detect' ) {
|
||||||
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';
|
||||||
} elsif ( $gateway eq 'none' ) {
|
} elsif ( $gw eq 'none' ) {
|
||||||
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;
|
||||||
$gatewaycase = 'none';
|
$gatewaycase = 'none';
|
||||||
$gateway = '';
|
$gateway = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user