forked from extern/shorewall_code
Fix more physical name issues
This commit is contained in:
parent
44f001388a
commit
262b4044f8
@ -125,15 +125,15 @@ sub setup_proxy_arp() {
|
|||||||
$first_entry = 0;
|
$first_entry = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fatal_error "Unknown interface ($external)" unless known_interface $external;
|
fatal_error "Unknown interface ($external)" unless known_interface $external, 1;
|
||||||
fatal_error "Wildcard interface ($external) not allowed" if $external =~ /\+$/;
|
fatal_error "Wildcard interface ($external) not allowed" if $external =~ /\+$/;
|
||||||
$reset{$external} = 1 unless $set{$external};
|
$reset{$external} = 1 unless $set{$external};
|
||||||
|
|
||||||
my $extphy = physical_name $external;
|
my $extphy = get_physical $external;
|
||||||
my $physical = '-';
|
my $physical = '-';
|
||||||
|
|
||||||
if ( $interface ne '-' ) {
|
if ( $interface ne '-' ) {
|
||||||
fatal_error "Unknown interface ($interface)" unless known_interface $interface;
|
fatal_error "Unknown interface ($interface)" unless known_interface $interface, 1;
|
||||||
fatal_error "Wildcard interface ($interface) not allowed" if $interface =~ /\+$/;
|
fatal_error "Wildcard interface ($interface) not allowed" if $interface =~ /\+$/;
|
||||||
$physical = physical_name $interface;
|
$physical = physical_name $interface;
|
||||||
$set{$interface} = 1;
|
$set{$interface} = 1;
|
||||||
|
@ -1334,7 +1334,7 @@ sub find_interfaces_by_option1( $ ) {
|
|||||||
my $wild = 0;
|
my $wild = 0;
|
||||||
|
|
||||||
for my $interface ( sort { $interfaces{$a}->{number} <=> $interfaces{$b}->{number} }
|
for my $interface ( sort { $interfaces{$a}->{number} <=> $interfaces{$b}->{number} }
|
||||||
keys %interfaces ) {
|
( grep $interfaces{$_}{root}, keys %interfaces ) ) {
|
||||||
my $interfaceref = $interfaces{$interface};
|
my $interfaceref = $interfaces{$interface};
|
||||||
|
|
||||||
next unless defined $interfaceref->{physical};
|
next unless defined $interfaceref->{physical};
|
||||||
|
Loading…
Reference in New Issue
Block a user