mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-15 10:08:43 +01:00
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:
parent
e45e9f7230
commit
ef836d7096
@ -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 ";
|
||||
|
Loading…
Reference in New Issue
Block a user