forked from extern/shorewall_code
Don't allow interface that is identical to the root of a wildcard
This commit is contained in:
parent
073366e610
commit
886121eaf3
@ -1197,7 +1197,7 @@ sub known_interface($;$)
|
|||||||
for my $i ( @interfaces ) {
|
for my $i ( @interfaces ) {
|
||||||
$interfaceref = $interfaces{$i};
|
$interfaceref = $interfaces{$i};
|
||||||
my $root = $interfaceref->{root};
|
my $root = $interfaceref->{root};
|
||||||
if ( $i ne $root && substr( $interface, 0, length $root ) eq $root ) {
|
if ( $i ne $root && $interface ne $root && substr( $interface, 0, length $root ) eq $root ) {
|
||||||
my $physical = map_physical( $interface, $interfaceref );
|
my $physical = map_physical( $interface, $interfaceref );
|
||||||
|
|
||||||
my $copyref = { options => $interfaceref->{options},
|
my $copyref = { options => $interfaceref->{options},
|
||||||
|
Loading…
Reference in New Issue
Block a user