Make tr/// a little less mysterious

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5993 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-18 03:25:47 +00:00
parent 1608a6f381
commit 78803f7c3c

View File

@ -652,9 +652,7 @@ sub do_proto( $$$ )
if ( $ports ) {
if ( $ports =~ tr/,/,/ > 0 ) {
fatal_error "Port list requires Multiport support in your kernel/iptables: $ports" unless $capabilities{MULTIPORT};
fatal_error "Too many entries in port list: $ports" if port_count( $ports ) > 14;
$output .= "-m multiport --dports $ports ";
} else {
$output .= "--dport $ports ";
@ -664,9 +662,7 @@ sub do_proto( $$$ )
if ( $sports ) {
if ( $sports =~ tr/,/,/ > 0 ) {
fatal_error "Port list requires Multiport support in your kernel/iptables: $sports" unless $capabilities{MULTIPORT};
fatal_error "Too many entries in port list: $sports" if port_count( $sports ) > 14;
$output .= "-m multiport --sports $sports ";
} else {
$output .= "--sport $sports ";