Fix UDPLITE handling of source port when no dest port given.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-03-16 10:45:31 -07:00
parent b2a56cd542
commit 66c883de2c

View File

@ -1863,7 +1863,7 @@ sub do_proto( $$$;$ )
$output .= "${invert}--dport ${ports} ";
}
} else {
$multiport = ( ( $sports =~ tr/,/,/ ) > 0 );
$multiport = ( ( $sports =~ tr/,/,/ ) > 0 || $proto == UDPLITE );
}
if ( $sports ne '' ) {