diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index e12c1547a..3bd0322e6 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -1571,16 +1571,18 @@ sub known_interface($) my $physical = map_physical( $interface, $interfaceref ); - $interfaces{$interface} = $interfaces{$physical} = { options => $interfaceref->{options} , - bridge => $interfaceref->{bridge} , - name => $i , - number => $interfaceref->{number} , - physical => $physical , - base => var_base( $physical ) , - wildcard => $interfaceref->{wildcard} , - zones => $interfaceref->{zones} , - }; - return $interfaces{$interface}; + $interfaceref = + $interfaces{$interface} = + $interfaces{$physical} = { options => $interfaceref->{options} , + bridge => $interfaceref->{bridge} , + name => $i , + number => $interfaceref->{number} , + physical => $physical , + base => var_base( $physical ) , + wildcard => $interfaceref->{wildcard} , + zones => $interfaceref->{zones} , + }; + return $interfaceref; } } }