mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 14:48:51 +01:00
Fix known_interface()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cb5a2519f3
commit
39f5b77e5f
@ -1580,7 +1580,7 @@ sub known_interface($)
|
||||
wildcard => $interfaceref->{wildcard} ,
|
||||
zones => $interfaceref->{zones} ,
|
||||
};
|
||||
|
||||
return $interfaces{$interface};
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2063,9 +2063,7 @@ sub process_host( ) {
|
||||
|
||||
fatal_error "Unknown interface ($interface)" unless ($interfaceref = $interfaces{$interface}) && $interfaceref->{root};
|
||||
fatal_error "Unmanaged interfaces may not be associated with a zone" if $interfaceref->{unmanaged};
|
||||
|
||||
$interface = $interfaceref->{name};
|
||||
|
||||
if ( $interfaceref->{physical} eq $loopback_interface ) {
|
||||
fatal_error "Only a loopback zone may be associated with the loopback interface ($loopback_interface)" if $type != LOOPBACK;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user