mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
Add some insurance against wildcard interfaces
This commit is contained in:
parent
5c890938ed
commit
433b3fbd87
@ -1358,7 +1358,14 @@ sub find_interfaces_by_option1( $ ) {
|
|||||||
sub get_interface_option( $$ ) {
|
sub get_interface_option( $$ ) {
|
||||||
my ( $interface, $option ) = @_;
|
my ( $interface, $option ) = @_;
|
||||||
|
|
||||||
$interfaces{$interface}{options}{$option};
|
my $ref = $interfaces{$interface};
|
||||||
|
|
||||||
|
return $ref->{options}{$option} if $ref;
|
||||||
|
|
||||||
|
assert( $ref = known_interface( $interface ) );
|
||||||
|
|
||||||
|
$ref->{options}{$option};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user