Allow ports with UDPLITE

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-28 06:27:51 -08:00
parent 22c614d30b
commit ee091d09eb

View File

@ -401,10 +401,11 @@ sub validate_portpair( $$ ) {
$what = 'port'; $what = 'port';
} }
fatal_error "Using a $what ( $portpair ) requires PROTO TCP, UDP, SCTP or DCCP" unless fatal_error "Using a $what ( $portpair ) requires PROTO TCP, UDP, UDPLITE, SCTP or DCCP" unless
defined $protonum && ( $protonum == TCP || defined $protonum && ( $protonum == TCP ||
$protonum == UDP || $protonum == UDP ||
$protonum == SCTP || $protonum == UDPLITE ||
$protonum == SCTP ||
$protonum == DCCP ); $protonum == DCCP );
join ':', @ports; join ':', @ports;