mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +02:00
Fix overoptimization of port list handling; prevent run-time error with bcast address in providers file
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6343 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
31bf7d926b
commit
3aec0bd800
@ -863,6 +863,8 @@ sub do_proto( $$$ )
|
|||||||
$ports = validate_portpair $ports;
|
$ports = validate_portpair $ports;
|
||||||
$output .= "--dport $ports ";
|
$output .= "--dport $ports ";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$multiport = ( ( $sports =~ tr/,/,/ ) > 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $sports ne '' ) {
|
if ( $sports ne '' ) {
|
||||||
|
@ -27,6 +27,7 @@ package Shorewall::Providers;
|
|||||||
require Exporter;
|
require Exporter;
|
||||||
use Shorewall::Common;
|
use Shorewall::Common;
|
||||||
use Shorewall::Config;
|
use Shorewall::Config;
|
||||||
|
use Shorewall::IPAddrs;
|
||||||
use Shorewall::Zones;
|
use Shorewall::Zones;
|
||||||
use Shorewall::Chains;
|
use Shorewall::Chains;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user