Remove superfluous check

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-11-03 08:19:46 -07:00
parent 2e211bc2b6
commit ec17ea1dee

View File

@ -5904,9 +5904,7 @@ sub isolate_source_interface( $ ) {
my ( $iiface, $inets ); my ( $iiface, $inets );
if ( $family == F_IPV4 ) { if ( $family == F_IPV4 ) {
if ( $source =~ /^~/ ) { if ( $source =~ /^(.+?):(.+)$/ ) {
$inets = $source;
} elsif ( $source =~ /^(.+?):(.+)$/ ) {
$iiface = $1; $iiface = $1;
$inets = $2; $inets = $2;
} elsif ( $source =~ /^!?(?:\+|&|~|\^|\d+\.)/ ) { } elsif ( $source =~ /^!?(?:\+|&|~|\^|\d+\.)/ ) {