diff --git a/Shorewall/Perl/Shorewall/IPAddrs.pm b/Shorewall/Perl/Shorewall/IPAddrs.pm index 5399b64a2..3f603490a 100644 --- a/Shorewall/Perl/Shorewall/IPAddrs.pm +++ b/Shorewall/Perl/Shorewall/IPAddrs.pm @@ -445,7 +445,7 @@ sub expand_port_range( $$ ) { # # Validate the ports # - ( $first , $last ) = ( validate_port( $proto, $first ) , validate_port( $proto, $last ) ); + ( $first , $last ) = ( validate_port( $proto, $first || 1 ) , validate_port( $proto, $last ) ); $last++; #Increment last address for limit testing. #