mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
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:
parent
1608a6f381
commit
78803f7c3c
@ -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 ";
|
||||
|
Loading…
Reference in New Issue
Block a user