forked from extern/shorewall_code
Suppress harmless Perl undefined value warnings
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9041 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e7e79aa339
commit
9d20374929
@ -281,7 +281,7 @@ sub determine_zones()
|
||||
$type = 'ip';
|
||||
$ip = 1;
|
||||
} elsif ( $type =~ /^ipsec([46])?$/i ) {
|
||||
fatal_error "Invalid zone type ($type)" if ( $1 == 4 && $family == F_IPV6 ) || ( $1 == 6 && $family == F_IPV4 );
|
||||
fatal_error "Invalid zone type ($type)" if $1 && (($1 == 4 && $family == F_IPV6 ) || ( $1 == 6 && $family == F_IPV4 ));
|
||||
$type = 'ipsec';
|
||||
} elsif ( $type =~ /^bport([46])?$/i ) {
|
||||
fatal_error "Invalid zone type ($type)" if ( $1 == 4 && $family == F_IPV6 ) || ( $1 == 6 && $family == F_IPV4 );
|
||||
|
Loading…
Reference in New Issue
Block a user