Remove redundant tests in proto/port handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6325 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-10 22:28:03 +00:00
parent e45e9f7230
commit ef836d7096

View File

@ -866,8 +866,7 @@ sub do_proto( $$$ )
}
if ( $sports ne '' ) {
if ( $sports =~ tr/,/,/ > 0 || $multiport ) {
fatal_error "Port list requires Multiport support in your kernel/iptables: $sports" unless $capabilities{MULTIPORT};
if ( $multiport ) {
fatal_error "Too many entries in port list: $sports" if port_count( $sports ) > 15;
$sports = validate_port_list $sports;
$output .= "-m multiport --sports $sports ";